{"library":"lru-cache-idb","type":"library","category":null,"description":"lru-cache-idb v0.5.2 is an LRU cache for web applications backed by IndexedDB. It batches writes to reduce I/O (default write interval 15s), batches eviction (default 1 min), and optionally keeps a subset of items in memory for faster reads. Designed for multi-tab safety and cross-session persistence, it implements a modern LRU eviction policy. Unlike most LRU caches (e.g., lru-cache for Node), lru-cache-idb is browser-first, uses no third-party dependencies, and is fully typed in TypeScript as an ESM-only module. Developed with low-frequency updates, it is stable for use cases requiring persistent client-side cache.","language":"javascript","status":"active","version":"0.5.2","tags":["javascript","lru","lrucache","lru-cache","cache","indexeddb","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install lru-cache-idb","imports":["import { createCacheIdb } from 'lru-cache-idb'","import type { LruIdbCache } from 'lru-cache-idb'","import type { CacheConfig } from 'lru-cache-idb'"]},{"cmd":"yarn add lru-cache-idb","imports":[]},{"cmd":"pnpm add lru-cache-idb","imports":[]}],"homepage":"https://github.com/cnoelle/lru-cache-idb","github":"https://github.com/cnoelle/lru-cache-idb","docs":null,"changelog":null,"pypi":null,"npm":"lru-cache-idb","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}