PouchDB LRU Cache

JSON →
library 1.1.4 ·javascript
verified Jun 7, 2026

An LRU (least recently used) cache plugin for PouchDB designed to store binary data (Blobs/Buffers) with a configurable maximum size limit. Current stable version is 1.1.4, with infrequent releases. It uses PouchDB's attachment API for storage, providing cross-browser support (IE 10+, modern browsers, Node.js). Key differentiators: leverage PouchDB's battle-tested binary storage, automatic eviction of least recently used items when size limit is exceeded, and simple API similar to node-lru-cache. Good for caching images or other binary assets in offline-first webapps.