Skip to main content

Module lru_cache

Module lru_cache 

Source
Expand description

LRU cache with TTL enforcement and observability hooks.

Provides a production-ready cache for tool results, pattern data, and LLM responses. Includes metrics collection and optional logging.

Structs§

CacheStats
Statistics about cache performance.
LruCache
LRU cache with TTL, capacity limits, and observability.
NoopObserver
Noop observer (default).

Enums§

EvictionReason
Why an entry was evicted.

Traits§

CacheObserver
Observability hook for cache events.