pub struct TieredCacheConfig {
pub enable_l1: bool,
pub enable_l2: bool,
pub write_through: bool,
pub promote_to_l1: bool,
pub l1_ttl_fraction: f64,
}Expand description
Tiered cache configuration
Fields§
§enable_l1: boolEnable L1 cache
enable_l2: boolEnable L2 cache
write_through: boolWrite-through to L2 on L1 set
promote_to_l1: boolPromote L2 hits to L1
l1_ttl_fraction: f64L1 TTL multiplier (fraction of L2 TTL)
Trait Implementations§
Source§impl Clone for TieredCacheConfig
impl Clone for TieredCacheConfig
Source§fn clone(&self) -> TieredCacheConfig
fn clone(&self) -> TieredCacheConfig
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 TieredCacheConfig
impl Debug for TieredCacheConfig
Auto Trait Implementations§
impl Freeze for TieredCacheConfig
impl RefUnwindSafe for TieredCacheConfig
impl Send for TieredCacheConfig
impl Sync for TieredCacheConfig
impl Unpin for TieredCacheConfig
impl UnwindSafe for TieredCacheConfig
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