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).
Optionaloptions: Partial<TtlCacheOptions<P>>optional, see TtlCache.OPTIONS
StaticOPTIONSDefault options. Change these to apply your preferred configuration. Changes apply only to future cache instances.
ProtectedentriesProtectedoptions
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.