A simple synchronous key-value cache for the browser that supports TTL-based expiration with aggressive deletion, localStorage persistence, and manual cache management. Version 3.0.0 is the latest stable release, last updated in 2017. Key differentiators: minimalistic API, synchronous operations, optional localStorage backing, and automatic expiration recycling. The package ships TypeScript types. Maintenance is low, with no recent updates.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-only since v3
Default import also works in TypeScript with esModuleInterop
Cache is exported as a named interface/class for TypeScript types
Shows basic setup: creating a cache with expiration, storing/retrieving an object, and cleanup.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.