function that loads the underlying values. It gets passed the same parameters as get. The load function may be synchronous or asynchronous (i.e. returning a promise).
Optional
options: Partial<TtlCacheOptions<P>>optional, see TtlCache.OPTIONS
Static
OPTIONSDefault options. Change these to apply your preferred configuration. Changes apply only to future cache instances.
Protected
entriesProtected
options
Basic key-value cache that stores the results of a given load function based on the parameters that are passed to it. Results remain valid for a limited time (Time To Live). Note that expired results are not proactively cleared, they're just reloaded once requested again.