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.
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.