IndexedDB-based persisting LRU cache for the browser. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntimeto be defined, for instance by importing regenerator-runtime/runtime.
const lru = cache<string, number>({
dbName: 'cache-lru',
maxCount: 10,
});See docs.