Iterate over keys in the cache, optionally in the order of last access time.
Optionaloptions: IterationOptionsClear the cache.
Optionaloptions: CacheRequestOptionsDelete one or multiple entries.
Optionaloptions: CacheRequestOptionsSee keys().
Optionaloptions: IterationOptionsGet a cached value, if present, or undefined if not. Resets the last access time of the entry, if present.
Optionaloptions: CacheRequestOptionsGet multiple cached values at once. Resets the last access time of the present entries.
Optionaloptions: CacheRequestOptions & { Retrieve all stored keys. Usually not recommended due its performance impact, prefer the streaming or iterating methods streamKeys(), keys() instead.
Optionaloptions: CacheRequestOptionsCheck if a key is contained in the cache. This does not change its access time.
Optionaloptions: 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.
Optionaloptions: IterationOptionsLike get() but does not modify the access time of the entry.
Optionaloptions: CacheRequestOptionsPut a new entry into the cache.
Optionaloptions: CacheRequestOptions & CacheWriteOptionsPut multiple entries into the cache.
Optionaloptions: 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.
Optionaloptions: CacheRequestOptionsSee streamKeys()
Optionaloptions: IterationOptionsRetrieve a stream of keys, optionally in the order of last access time.
Optionaloptions: IterationOptionsSee streamKeys()
Optionaloptions: IterationOptionsSee keys().
Optionaloptions: 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.