Expand description
Bounded in-memory cache for identical model responses.
Structs§
- Cache
Stats - Snapshot of cache activity.
- Cached
Response - A response stored in the cache.
- Response
Cache - Thread-safe bounded LRU response cache.
- Response
Cache Key - Stable cache key derived from response-defining request fields.
Enums§
- Cache
Policy - Selects how cached responses determine their lifetime.
Constants§
- DEFAULT_
TTL - Default lifetime for a cached response.
- MAX_
ENTRIES - Maximum number of responses retained by a response cache.