Skip to main content

Module advanced_caching

Module advanced_caching 

Source
Expand description

Advanced multi-level caching system for vector embeddings and search results.

This module is organized as a set of focused sub-modules:

  • [advanced_caching_eviction] — MemoryCache, PersistentCache, eviction policies
  • [advanced_caching_multilevel] — MultiLevelCache, CacheInvalidator
  • [advanced_caching_worker] — BackgroundCacheWorker, CacheWarmer, CacheAnalyzer

Shared primitive types (EvictionPolicy, CacheConfig, CacheEntry, CacheKey, CacheStats) are defined here in the root and re-exported so that all sibling modules can import them via use super::* or specific use super::{…} paths.

Re-exports§

pub use crate::advanced_caching_eviction::MemoryCache;
pub use crate::advanced_caching_eviction::PersistentCache;
pub use crate::advanced_caching_multilevel::CacheInvalidator;
pub use crate::advanced_caching_multilevel::InvalidationStats;
pub use crate::advanced_caching_multilevel::MultiLevelCache;
pub use crate::advanced_caching_multilevel::MultiLevelCacheStats;
pub use crate::advanced_caching_worker::BackgroundCacheWorker;
pub use crate::advanced_caching_worker::CacheAnalysisReport;
pub use crate::advanced_caching_worker::CacheAnalyzer;
pub use crate::advanced_caching_worker::CacheWarmer;

Structs§

CacheConfig
Cache configuration
CacheEntry
Cache entry with metadata
CacheKey
Cache key that can be hashed
CacheStats
Cache statistics

Enums§

EvictionPolicy
Cache eviction policy