Skip to main content

Module query_cache

Module query_cache 

Source
Expand description

Semantic query cache with TTL expiry, LRU eviction, and hit/miss statistics.

Caches semantic search results keyed by query embedding fingerprint (FNV-1a). Entries expire after a configurable number of ticks and are evicted in LRU order when the cache reaches its capacity limit.

Structsยง

CachedQueryResult
A single cached search result entry, keyed by query embedding fingerprint.
QueryCacheConfig
Configuration for a SemanticQueryCache instance.
QueryCacheStats
Accumulated statistics for a SemanticQueryCache instance.
SemanticQueryCache
An in-memory cache for semantic search results with: