Skip to main content

Module cache

Module cache 

Source
Expand description

Cache-aware TTL coordination hints for compression-related caches.

Hosts attach real storage; this module only models hysteresis on repeated hits so hot keys do not thrash TTL without unbounded growth.

Structs§

CacheTtlResult
Result of effective_ttl_with_hysteresis.

Functions§

cache_policy_summary
One-line description for operator CLIs / docs.
effective_ttl_with_hysteresis
Stretch effective TTL modestly on repeated access to the same logical key, capped at 2× base and at [MAX_EFFECTIVE_TTL_SECS].