pub struct CacheAnalytics { /* private fields */ }Expand description
Cache analytics engine
Implementations§
Source§impl CacheAnalytics
impl CacheAnalytics
Sourcepub async fn record_access(&self, key: CacheKey)
pub async fn record_access(&self, key: CacheKey)
Record access
Sourcepub async fn record_stats(&self, stats: CacheStats)
pub async fn record_stats(&self, stats: CacheStats)
Record statistics
Sourcepub async fn analyze_patterns(&self) -> Vec<AccessPattern>
pub async fn analyze_patterns(&self) -> Vec<AccessPattern>
Analyze access patterns
Sourcepub async fn generate_recommendations(&self) -> Vec<CacheRecommendation>
pub async fn generate_recommendations(&self) -> Vec<CacheRecommendation>
Generate recommendations
Sourcepub async fn detect_anomalies(&self) -> Vec<Anomaly>
pub async fn detect_anomalies(&self) -> Vec<Anomaly>
Detect anomalies
Sourcepub async fn metrics(&self) -> CacheMetrics
pub async fn metrics(&self) -> CacheMetrics
Get metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheAnalytics
impl !RefUnwindSafe for CacheAnalytics
impl Send for CacheAnalytics
impl Sync for CacheAnalytics
impl Unpin for CacheAnalytics
impl UnsafeUnpin for CacheAnalytics
impl !UnwindSafe for CacheAnalytics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more