pub trait CacheProvider {
// Required methods
fn get_stats(&self) -> CacheStats;
fn reset_metrics(&self);
fn has_performance_issues(&self) -> bool;
fn get_recommendations(&self) -> Vec<String>;
}Expand description
Trait for generic cache operations
Required Methods§
Sourcefn get_stats(&self) -> CacheStats
fn get_stats(&self) -> CacheStats
Returns a snapshot of cache statistics
Sourcefn reset_metrics(&self)
fn reset_metrics(&self)
Resets all metric counters to zero
Sourcefn has_performance_issues(&self) -> bool
fn has_performance_issues(&self) -> bool
Returns true if the cache exhibits performance problems
Sourcefn get_recommendations(&self) -> Vec<String>
fn get_recommendations(&self) -> Vec<String>
Returns actionable recommendations for improving cache performance