limited-cache

JSON →
library 2.2.0 ·javascript
verified Jun 7, 2026

A minimal JS cache that prevents unbounded growth by enforcing a size limit and optional max age. Version 2.2.0 actively maintained on GitHub. Provides three API tiers: a standard class-based interface (LimitedCache), a Proxy-based object-style API (LimitedCacheObject), and low-level serializable functions for offline/Redux use. Ships TypeScript definitions. Unlike simple object caches, it uses a circular buffer for efficient eviction and warns in development if items are evicted prematurely.