weak-lru-cache@1.2.2
// An LRU cache of weak references
$ npm install weak-lru-cache
downloads/wk
4,817,872
license
MIT
version
1.2.2
published
Feb 2, 2022
What is weak-lru-cache?
weak-lru-cache is an LRU (least recently used) cache that stores weak references to objects, allowing them to be garbage collected when no other code holds a reference to them. Use this package when you need to cache expensive computations or lookups without preventing those cached objects from being freed by the garbage collector.
Links
Keywords
Maintainers
kriszyp