The type of the cached data.
The type of the cached data.
Optionallog: IHaveLogger | nullOptionalloopTime: numberDelete cached data
Extend the ttl of a cached data
cache key
Optionalttl: number
add time in ms
Flash the cache
Has cached data
cache key
data to cache
Optionalttl: number
time in ms
Stop the background cache cleaner
A cache that stores values with a time‑to‑live (TTL) and automatically removes expired entries after a configurable interval.
The cache stores data objects wrapped in a
CachedData<T>structure that tracks the insertion time (last) and the remaining TTL. When an entry expires, a background loop removes it and optionally logs the event.