AbstractOptionaldefaultTtl: number | (() => number | Promise<number>)OptionalonInvalidationFailure: OnInvalidationFailureAbstract Readonly_Phantom carrier, only for type inference.
Optional ReadonlydefaultReadonlynameOptional ReadonlyonReadonlystoreReadonlytagsAbstractsetDirectly write a value into this cache, following its configured write strategy.
Use this instead of wrapWrite when the source function has already
been called and you only need to propagate the result.
Optionaloptions: CacheSetDirectOptions<CacheTag>Returns a wrapped version of fn that invalidates a cache entry after call.
Optionaloptions: CacheWrapDeleteOptions<TArgs, CacheTag>Calls fn → Invalidates tags → Returns the fn result. For operations that affect cached data but produce no cacheable result, e.g. CreateAll/updateAll on a collection cache where no filter key can be derived from the output.
Read‑aside base class.
On a cache miss the source is called, but the result is never written back to the cache. Cache population happens only via explicit write strategies (
wrapWrite) or out‑of‑band processes.wrapDeleteandwrapInvalidatework exactly like their read‑through counterparts.