least-recent

JSON →
library 1.0.3 ·javascript
verified Jun 7, 2026

An LRU cache that evicts least-recently-used items when full. Current version 1.0.3, stable with low release cadence. Fork of Mnemonist's LRUCache with added eviction event emission via nanoevents. Differentiator: emits 'evicted' event on eviction, unlike Mnemonist. Pure ESM package, requires Node >=14 or modern browser.