flru

JSON →
library 1.0.2 ·javascript
verified Jun 7, 2026

A tiny (215B) and fast Least Recently Used (LRU) cache for JavaScript. Stable version 1.0.2, last updated in 2019. No active release cadence; essentially stable and minimal. Key differentiators: extremely small size (215B), high performance with a two-cache internal architecture that trades memory for speed, supports ESM, CJS, and UMD formats, and includes TypeScript types. Compared to alternatives like lru-cache or tiny-lru, flru is much smaller and faster for typical operations but uses 2n memory and has a simpler API.