Expand description
Three-layer cache system for MUR Commander.
- L1: Struct cache — pre-loaded workflows, patterns, config, constitution
- L2: Query cache — search results and injection results
- L3: LLM response cache — prompt→response pairs to save API costs
Structs§
- Cache
Entry - Cache entry with TTL tracking.
- Cache
Stats - Cache statistics.
- Cache
System - Combined three-layer cache.
- L1Struct
Cache - L1: Struct cache for frequently accessed data.
- L2Query
Cache - L2: Query result cache.
- L3Llm
Cache - L3: LLM response cache — exact prompt→response to avoid duplicate API calls.
- LlmCache
Entry - Cached LLM response.
Functions§
- prompt_
hash - Compute a simple hash of a prompt for L3 cache keys.