Expand description
Caching Module
Provides query result caching for improved performance.
§Architecture
┌─────────────────────────────────────────────────────────────┐
│ QueryCache │
├─────────────────────────────────────────────────────────────┤
│ LRU eviction policy │
│ TTL-based expiration │
│ Thread-safe access │
└─────────────────────────────────────────────────────────────┘§Cache Key
Cache keys are computed from:
- Query embedding (hashed)
- k value
- Filter expression (if any)
- Index names (if specified)
Structs§
- Cache
Config - Cache configuration.
- Cache
Entry - Cached entry with metadata.
- Cache
Key - Cache key for queries.
- Cache
Stats - Cache statistics.
- Query
Cache - LRU query cache with TTL expiration.