Skip to main content

Module predictive_cache

Module predictive_cache 

Source
Expand description

Predictive LRU Cache with Markov Chain Pre-warming.

Ported from v2’s optimization/predictive_cache.py. Tracks access patterns to predict future accesses, maintaining a rolling window of transitions. When a key is accessed, likely-next keys are pre-warmed for faster retrieval.

Target: 60–70% faster access for frequently used memories.

Structs§

CacheStats
Cache performance statistics.
PredictiveCache
Predictive LRU cache with Markov chain pre-warming.