npm.io
1.0.1 • Published 2 years ago

@wry/caches

Licence
MIT
Version
1.0.1
Deps
1
Size
62 kB
Vulns
0
Weekly
0
Stars
91

@wry/caches

Various cache implementations, including but not limited to

  • StrongCache: A standard Map-like cache with a least-recently-used (LRU) eviction policy and a callback hook for removed entries.

  • WeakCache: Another LRU cache that holds its keys only weakly, so entries can be removed once no longer retained elsewhere in the application.