Skip to main content

IntelligentCacheManager

Struct IntelligentCacheManager 

Source
pub struct IntelligentCacheManager<K, V>
where K: Clone + Hash + Eq + Send + Sync + Debug + 'static, V: Clone + Send + Sync + Debug + 'static,
{ /* private fields */ }
Expand description

Intelligent Cache Manager

Coordinates multi-level caching with predictive preheating and adaptive tuning. Provides unified interface for all cache operations while optimizing performance.

Implementations§

Source§

impl<K, V> IntelligentCacheManager<K, V>
where K: Clone + Hash + Eq + Send + Sync + Debug + 'static, V: Clone + Send + Sync + Debug + 'static,

Source

pub fn new(config: UnifiedCacheConfig) -> Self

Create a new intelligent cache manager

Source

pub fn config(&self) -> &UnifiedCacheConfig

Get cache configuration

Source

pub fn preheater(&self) -> Arc<PredictivePreheater<K>>

Get predictive preheater

Source

pub fn tuner(&self) -> Arc<AdaptiveTuner>

Get adaptive tuner

Source

pub fn monitor(&self) -> Arc<PerformanceMonitor>

Get performance monitor

Trait Implementations§

Source§

impl<K, V> Debug for IntelligentCacheManager<K, V>
where K: Clone + Hash + Eq + Send + Sync + Debug + 'static + Debug, V: Clone + Send + Sync + Debug + 'static + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<K, V> UnifiedCache<K, V> for IntelligentCacheManager<K, V>
where K: Clone + Hash + Eq + Send + Sync + Debug + 'static, V: Clone + Send + Sync + Debug + 'static,

Source§

fn get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 K, ) -> Pin<Box<dyn Future<Output = Option<V>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get a value from the cache

Source§

fn put<'life0, 'async_trait>( &'life0 self, key: K, value: V, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Put a value into the cache

Source§

fn remove<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 K, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Remove a value from the cache

Source§

fn contains_key<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 K, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if a key exists in the cache

Source§

fn get_stats<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = UnifiedCacheStats> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get cache statistics

Source§

fn clear<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clear all cache entries

Source§

fn size<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get cache size (total entries across all levels)

Source§

fn is_empty<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Check if cache is empty

Source§

fn capacity<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get cache capacity (total across all levels)

Source§

fn cache_type(&self) -> &'static str

Get cache type identifier

Auto Trait Implementations§

§

impl<K, V> Freeze for IntelligentCacheManager<K, V>

§

impl<K, V> !RefUnwindSafe for IntelligentCacheManager<K, V>

§

impl<K, V> Send for IntelligentCacheManager<K, V>

§

impl<K, V> Sync for IntelligentCacheManager<K, V>

§

impl<K, V> Unpin for IntelligentCacheManager<K, V>

§

impl<K, V> UnsafeUnpin for IntelligentCacheManager<K, V>

§

impl<K, V> !UnwindSafe for IntelligentCacheManager<K, V>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more