@jbrowse/quick-lru
v8.0.0
Published
Simple “Least Recently Used” (LRU) cache, forked from sindresorhus/quick-lru for CJS
Readme
@jbrowse/quick-lru
Fork of quick-lru with CJS and ESM builds, written in TypeScript.
Differences from upstream
- Does not extend
Map, soinstanceof Mapisfalse - Iteration,
keys(),values(),entries()andforEach()all run oldest first set()on a key in the older generation no longer firesonEvictionfor it at the next rotationmaxAgemust be greater than 0; negative values andNaNthrow
