Skip to content

Proposal: Use LRUCache instead of Map #23

@dyst5422

Description

@dyst5422

Using LRU cache https://www.npmjs.com/package/lru-cache would handle the duration and allow for more complex cache eviction policies.

Seems like a no brainer to me UNLESS you are trying to keep zero dependencies - which is a valid desire. In that case, I would recommend having dependency injection of a cache which would allow for this without complication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions