{"library":"limited-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"2.2.0","tags":["javascript","limited cache","cache","circular buffer","max size","max time","rotating cache","offline cache","local storage","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install limited-cache","imports":["import { LimitedCache } from 'limited-cache'","import { LimitedCacheObject } from 'limited-cache'","import { limitedCacheUtil } from 'limited-cache'"]},{"cmd":"yarn add limited-cache","imports":[]},{"cmd":"pnpm add limited-cache","imports":[]}],"homepage":"https://github.com/spautz/limited-cache/tree/main/packages/limited-cache#readme","github":"https://github.com/spautz/limited-cache","docs":null,"changelog":null,"pypi":null,"npm":"limited-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}