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§
- Cache
Stats - Statistics about cache performance.
- LruCache
- LRU cache with TTL, capacity limits, and observability.
- Noop
Observer - Noop observer (default).
Enums§
- Eviction
Reason - Why an entry was evicted.
Traits§
- Cache
Observer - Observability hook for cache events.