Module ttl

Module ttl 

Source
Expand description

TTL-driven object cache with poll-based expiry pruning.

TtlObjectCache stores values with per-entry TTLs and tracks their locations via MemRegionLocator. Expired entries are removed by calling tick or prune_expired with the current unix timestamp.

The cache is integrated with RenewalPolicy for configuring renewal thresholds, though actual lease renewal is the caller’s responsibility.

Structs§

CacheStats
Statistics returned by TtlObjectCache::tick.
TtlObjectCache
Object cache with per-entry TTL and poll-driven expiry.