Iterate over keys in the cache, optionally in the order of last access time.
Optional
options: IterationOptionsClear the cache.
Optional
options: CacheRequestOptionsDelete one or multiple entries.
Optional
options: CacheRequestOptionsSee keys().
Optional
options: IterationOptionsGet a cached value, if present, or undefined if not. Resets the last access time of the entry, if present.
Optional
options: CacheRequestOptionsGet multiple cached values at once. Resets the last access time of the present entries.
Optional
options: CacheRequestOptions & { Retrieve all stored keys. Usually not recommended due its performance impact, prefer the streaming or iterating methods streamKeys(), keys() instead.
Optional
options: CacheRequestOptionsCheck if a key is contained in the cache. This does not change its access time.
Optional
options: CacheRequestOptionsIterate over keys in the cache, optionally in the order of last access time. Note that this returns batches of keys in each step, typically around 100 per batch, since this is much more performant on large caches due to the promise overhead.
Optional
options: IterationOptionsLike get() but does not modify the access time of the entry.
Optional
options: CacheRequestOptionsPut a new entry into the cache.
Optional
options: CacheRequestOptions & CacheWriteOptionsPut multiple entries into the cache.
Optional
options: CacheRequestOptions & CacheWriteOptionsReturns an estimate of the number of items currently contained in the cache. Under normal conditions, this should be smaller than the specified threshold LruIdbConfig.maxItems, but it may also occasionally exceed this value.
Optional
options: CacheRequestOptionsSee streamKeys()
Optional
options: IterationOptionsRetrieve a stream of keys, optionally in the order of last access time.
Optional
options: IterationOptionsSee streamKeys()
Optional
options: IterationOptionsSee keys().
Optional
options: IterationOptions
A least-recently-used (LRU) cache for the browser, based on IndexedDB. All methods returning the cached values, such as LruCacheIndexedDB.get(key, options), reset the last access time of the respective entries, as do the setters. Methods iterating over keys, such as LruCacheIndexedDB.iterateKeys(options), do not.