ScopedCache18
Constructors
Models
Combinators
entriesconstRetrieves all key-value pairs from the cache as an array.getconstGets the value for a key, running the cache lookup when no unexpired entry is present.getOptionconstReads an existing unexpired cache entry without running the lookup function.getSuccessconstRetrieves the value associated with the specified key from the cache, only if it contains a resolved successful value.hasconstChecks whether the cache contains an entry for the specified key.invalidateconstRemoves the entry associated with a key and closes its entry scope.invalidateAllconstRemoves every entry from the cache and closes each entry scope.invalidateWhenconstInvalidates the entry associated with the specified key in the cache when the predicate returns true for the cached value.keysconstRetrieves all active keys from the cache, automatically filtering out expired entries.refreshconstForces a refresh of the value associated with the specified key in the cache.setconstSets a successful value for a key without running the lookup function.sizeconstRetrieves the approximate number of entries in the cache.valuesconstRetrieves all successfully cached values from the cache, excluding failed lookups and expired entries.