pub struct CacheTier {
pub backend: Arc<dyn L2CacheBackend>,
pub tier_level: usize,
pub promotion_enabled: bool,
pub promotion_frequency: usize,
pub ttl_scale: f64,
pub stats: TierStats,
}Expand description
A single cache tier in the multi-tier architecture
Fields§
§backend: Arc<dyn L2CacheBackend>The backend for this tier
tier_level: usizeTier level (1 for fastest, increases for slower/cheaper tiers)
promotion_enabled: boolWhether to promote keys FROM lower tiers TO this tier
promotion_frequency: usizePromotion frequency (N) - promote with 1/N probability
ttl_scale: f64TTL multiplier for this tier (e.g., L2 might store for 2x L1 TTL)
stats: TierStatsStatistics for this tier
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CacheTier
impl !RefUnwindSafe for CacheTier
impl Send for CacheTier
impl Sync for CacheTier
impl Unpin for CacheTier
impl UnsafeUnpin for CacheTier
impl !UnwindSafe for CacheTier
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