ls-cache

JSON →
library 0.2.3 ·javascript
verified Jun 7, 2026

ls-cache (version 0.2.3) is a browser library that emulates memcache functions using HTML5 localStorage. It stores key-value pairs with optional expiration times in minutes, automatically evicts expiring entries when the ~5MB limit is approached, and degrades gracefully if localStorage is unavailable. Supports hierarchical buckets for independent caching scopes. Current version is 0.2.3; no recent releases. Differentiates from lscache by adding bucket hierarchies and a non-global namespace.