pub struct IntelligentCacheManager { /* private fields */ }Expand description
Intelligent cache manager for advanced caching strategies
Implementations§
Source§impl IntelligentCacheManager
impl IntelligentCacheManager
Sourcepub fn new(config: ContentCacheConfig) -> Self
pub fn new(config: ContentCacheConfig) -> Self
Create a new intelligent cache manager
Sourcepub fn store_content(
&mut self,
request: CachedContentRequest,
) -> Result<(), String>
pub fn store_content( &mut self, request: CachedContentRequest, ) -> Result<(), String>
Store content in the cache
Sourcepub fn retrieve_content(
&mut self,
content_id: &str,
) -> Option<CachedContentResponse>
pub fn retrieve_content( &mut self, content_id: &str, ) -> Option<CachedContentResponse>
Retrieve content from the cache
Sourcepub fn invalidate_content(
&mut self,
request: CacheInvalidationRequest,
) -> CacheInvalidationResponse
pub fn invalidate_content( &mut self, request: CacheInvalidationRequest, ) -> CacheInvalidationResponse
Invalidate content based on criteria
Sourcepub fn performance_metrics(&self) -> &CachePerformanceMetrics
pub fn performance_metrics(&self) -> &CachePerformanceMetrics
Get current performance metrics
Sourcepub fn cache_utilization(&self) -> (usize, usize, f64)
pub fn cache_utilization(&self) -> (usize, usize, f64)
Get cache utilization information
Trait Implementations§
Source§impl Clone for IntelligentCacheManager
impl Clone for IntelligentCacheManager
Source§fn clone(&self) -> IntelligentCacheManager
fn clone(&self) -> IntelligentCacheManager
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntelligentCacheManager
impl RefUnwindSafe for IntelligentCacheManager
impl Send for IntelligentCacheManager
impl Sync for IntelligentCacheManager
impl Unpin for IntelligentCacheManager
impl UnsafeUnpin for IntelligentCacheManager
impl UnwindSafe for IntelligentCacheManager
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