Expand description
LLM call cache implementation.
In-memory LRU cache that memoizes repeated LLM call results. Supports optional TTL expiry and a maximum-entry limit.
Structs§
- Cache
Config - Cache configuration
- CachedLLM
Result - Cached LLM result, with its expiry time
- LLMCache
- LLM call cache
Enums§
- Cache
Error - Error type for the LLM cache.