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 │
└─────────────────────────────────────────────────────────────┘