Skip to content

Possibly a good/better LRFU cache? #3

Open
@Logic-Elliven

Description

@Logic-Elliven

Hi tugrul512bit :)

Again; I'm no dev, so just thought you may find this interesting/useful:

"...The weak-lru-cache package provides a powerful cache that works in harmony with the JS garbage collection (GC) and least-recently used (LRU) and least-freqently used (LFU) expiration strategy to help cache data with highly optimized cache retention.

It uses LRU/LFU (LRFU) expiration to retain referenced data, and then once data has been inactive, it uses weak references (and finalization registry) to allow GC to remove the cached data as part of the normal GC cycles, but still continue to provide cached access to the data as long as it still resides in memory and hasn't been collected.

This provides the best of modern expiration strategies combined with optimal GC interaction..."

https://github.com/kriszyp/weak-lru-cache

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