Skip to main content

warm_cache

Function warm_cache 

Source
pub async fn warm_cache(
    memory: &Arc<SelfLearningMemory>,
    config: &CacheWarmingConfig,
) -> Result<()>
Expand description

Warm the cache by pre-loading recent episodes and common query patterns

This method performs cache warming to improve initial query performance by:

  1. Pre-loading recent episodes into cache
  2. Pre-computing common query patterns
  3. Warming up pattern extraction and retrieval systems