Skip to main content

Module cache

Module cache 

Source
Expand description

Bounded in-memory cache.

§Runtime scope

  • Build: opt-in via platform-models.
  • Execution: host/library only; no repository runtime caller.
  • Default termivar scan: no.
  • Support: experimental/scaffold.

See docs/internals/runtime-map.md.

LruCache provides process-local TTL storage with true access-recency eviction. TTL uses a monotonic clock; recency uses a sequence allocated while the cache lock is held. This module does not cache HTTP responses because a URL alone cannot identify authorization, cookies, headers, request body, or other response-varying context safely.

Structs§

CacheStats
Cache statistics snapshot.
LruCache
A process-local, bounded least-recently-used cache with TTL expiration.