Skip to content

feat: refactor local task cache to LRU implement. #254

@IRONICBo

Description

@IRONICBo

golang-lru seems to have implemented some concurrency-safe caching policies that can replace our local existing implementation logic internal/core/task.go to support better cache management.

For now it's enough to only consider standalone cache management, I've also given some bench processing in test, and also need to consider a performance comparison between the two implementations.

If there is a better solution you can comment below

Reference: https://github.com/hashicorp/golang-lru

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions