pub struct UnifiedCacheConfig {
pub l1_config: L1CacheConfig,
pub l2_config: L2CacheConfig,
pub preheating_config: PreheatingConfig,
pub tuning_config: TuningConfig,
pub monitoring_config: MonitoringConfig,
}Expand description
Unified cache configuration
This configuration integrates settings for multi-level caching, predictive preheating, and adaptive tuning.
Fields§
§l1_config: L1CacheConfigL1 cache configuration (memory cache)
l2_config: L2CacheConfigL2 cache configuration (disk cache)
preheating_config: PreheatingConfigPredictive preheating configuration
tuning_config: TuningConfigAdaptive tuning configuration
monitoring_config: MonitoringConfigMonitoring and statistics configuration
Implementations§
Source§impl UnifiedCacheConfig
impl UnifiedCacheConfig
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
Create a configuration optimized for high performance
Sourcepub fn low_memory() -> Self
pub fn low_memory() -> Self
Create a configuration optimized for low memory usage
Trait Implementations§
Source§impl Clone for UnifiedCacheConfig
impl Clone for UnifiedCacheConfig
Source§fn clone(&self) -> UnifiedCacheConfig
fn clone(&self) -> UnifiedCacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnifiedCacheConfig
impl Debug for UnifiedCacheConfig
Source§impl Default for UnifiedCacheConfig
impl Default for UnifiedCacheConfig
Source§fn default() -> UnifiedCacheConfig
fn default() -> UnifiedCacheConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnifiedCacheConfig
impl<'de> Deserialize<'de> for UnifiedCacheConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnifiedCacheConfig
impl RefUnwindSafe for UnifiedCacheConfig
impl Send for UnifiedCacheConfig
impl Sync for UnifiedCacheConfig
impl Unpin for UnifiedCacheConfig
impl UnsafeUnpin for UnifiedCacheConfig
impl UnwindSafe for UnifiedCacheConfig
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