Expand description
Intelligent caching system for rez-core
This crate provides a unified, intelligent caching system that integrates with existing rez-core caches (SolverCache, RepositoryCache, RexCache). It features multi-level caching, predictive preheating, and adaptive tuning to achieve >90% cache hit rates.
§Features
- Unified Cache Interface: Common trait for all cache types
- Multi-level Caching: L1 memory cache + L2 disk cache
- Predictive Preheating: ML-based access pattern prediction
- Adaptive Tuning: Real-time parameter optimization
- Performance Monitoring: Comprehensive statistics and metrics
§Architecture
The caching system is built on top of existing rez-core cache implementations, reusing proven patterns and components while adding intelligent features.
┌─────────────────────────────────────────────────────────────┐
│ IntelligentCacheManager │
├─────────────────────────────────────────────────────────────┤
│ L1 Cache (DashMap) │ L2 Cache (RepositoryCache) │
├─────────────────────────────────────────────────────────────┤
│ PredictivePreheater │ AdaptiveTuner │
├─────────────────────────────────────────────────────────────┤
│ SolverCache │ RepositoryCache │ RexCache │
└─────────────────────────────────────────────────────────────┘Re-exports§
pub use adaptive_tuner::*;pub use benchmarks::*;pub use cache_config::*;pub use cache_stats::*;pub use error::*;pub use intelligent_manager::*;pub use performance_monitor::*;pub use predictive_preheater::*;pub use unified_cache::*;
Modules§
- adaptive_
tuner - Adaptive Cache Tuner
- benchmarks
- Intelligent Cache Benchmarks
- cache_
config - Cache configuration and settings
- cache_
stats - Unified cache statistics and monitoring
- error
- Error types for the intelligent caching system
- intelligent_
manager - Intelligent Cache Manager
- performance_
monitor - Performance Monitor
- predictive_
preheater - Predictive Preheater
- unified_
cache - Unified cache interface and implementations
Enums§
- Eviction
Strategy - Cache eviction strategies (copied from SolverCache for now)
Constants§
- CACHE_
VERSION - Version information for the cache system
- DEFAULT_
L1_ CAPACITY - Default cache configuration
- DEFAULT_
L2_ CAPACITY - DEFAULT_
MEMORY_ LIMIT_ MB - DEFAULT_
TTL_ SECONDS