pub struct MultiTierConfig {
pub promotion_strategy: PromotionStrategy,
pub write_through: bool,
pub max_l1_entry_size: Option<usize>,
}Expand description
Configuration for multi-tier caching.
Fields§
§promotion_strategy: PromotionStrategyStrategy for promoting entries from L2 to L1
write_through: boolWhether to write to both tiers on set (true) or L2 only (false)
max_l1_entry_size: Option<usize>Don’t store entries larger than this in L1 (default: 256KB) Large entries are only stored in L2 to prevent L1 pollution
Trait Implementations§
Source§impl Clone for MultiTierConfig
impl Clone for MultiTierConfig
Source§fn clone(&self) -> MultiTierConfig
fn clone(&self) -> MultiTierConfig
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 MultiTierConfig
impl Debug for MultiTierConfig
Auto Trait Implementations§
impl Freeze for MultiTierConfig
impl RefUnwindSafe for MultiTierConfig
impl Send for MultiTierConfig
impl Sync for MultiTierConfig
impl Unpin for MultiTierConfig
impl UnwindSafe for MultiTierConfig
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