pub fn config_max_cache_percent(&self, max_cache_percent: u8) -> &Self {
        assert!(max_cache_percent < 100);
        for bucket in &self.buckets {
            bucket
                .max_cache_percent
                .store(max_cache_percent, Ordering::Relaxed);
        }
        self
    }
/// Sets the upper limit for the 'cache_target' in percent at 'min_capacity_limit'. When
/// only few entries are stored in a CacheDb it is reasonable to use a lot space for
/// caching. Note that this counts against the 'capacity' of the underlying container,
/// thus it should be not significantly over 60% at most.
Sets the upper limit for the 'cache_target' in percent at 'min_capacity_limit'. When
only few entries are stored in a CacheDb it is reasonable to use a lot space for
caching. Note that this counts against the 'capacity' of the underlying container,
thus it should be not significantly over 60% at most.
Sets the upper limit for the ' cache_target ' in percent at ' min_capacity_limit ' . When only few entries are stored in a CacheDb it is reasonable to use a lot space for caching . Note that this counts against the ' capacity ' of the underlying container thus it should be not significantly over 60% at most .
pub fn config_max_cache_percent(&self, max_cache_percent: u8) -> &Self {
        assert!(max_cache_percent < 100);
        for bucket in &self.buckets {
            bucket
                .max_cache_percent
                .store(max_cache_percent, Ordering::Relaxed);
        }
        self
    }
pub fn config_max_cache_percent ( & self , max_cache_percent : u8 ) -> & Self { assert ! ( max_cache_percent 100 ) ; for bucket in & self . buckets { bucket . max_cache_percent . store ( max_cache_percent , Ordering :: Relaxed ) ; } self }
Sets the upper limit for the 'cache_target' in percent at 'min_capacity_limit'.
Sets the upper limit for the ' cache_target ' in percent at ' min_capacity_limit ' .
&self
max_cache_percent
u8
&self
max_cache_percent
u8