{"library":"pouchdb-lru-cache","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.1.4","tags":["javascript","pouch","pouchdb","plugin","seed","couch","couchdb"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install pouchdb-lru-cache","imports":["import PouchDB from 'pouchdb';\nimport pouchLru from 'pouchdb-lru-cache';\nPouchDB.plugin(pouchLru);","var db = new PouchDB('cache');\ndb.initLru(5000000);\ndb.lru.put('key', blob);","var PouchDB = require('pouchdb');\nPouchDB.plugin(require('pouchdb-lru-cache'));\nvar db = new PouchDB('cache');\ndb.initLru();"]},{"cmd":"yarn add pouchdb-lru-cache","imports":[]},{"cmd":"pnpm add pouchdb-lru-cache","imports":[]}],"homepage":"https://github.com/squarespace/pouchdb-lru-cache#readme","github":"git://github.com/squarespace/pouchdb-lru-cache","docs":null,"changelog":null,"pypi":null,"npm":"pouchdb-lru-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}