pub fn config_max_capacity_limit(&self, max_capacity_limit: usize) -> &Self {
        for bucket in &self.buckets {
            // divide by N so that each bucket gets its share
            bucket
                .max_capacity_limit
                .store(max_capacity_limit / N, Ordering::Relaxed);
        }
        self
    }
/// Sets the upper limit for the 'cache_target' linear interpolation region.
/// Should be fine around the maximum expected number of entries.
Sets the upper limit for the 'cache_target' linear interpolation region.
Should be fine around the maximum expected number of entries.
Sets the upper limit for the ' cache_target ' linear interpolation region . Should be fine around the maximum expected number of entries .
pub fn config_max_capacity_limit(&self, max_capacity_limit: usize) -> &Self {
        for bucket in &self.buckets {
            // divide by N so that each bucket gets its share
            bucket
                .max_capacity_limit
                .store(max_capacity_limit / N, Ordering::Relaxed);
        }
        self
    }
pub fn config_max_capacity_limit ( & self , max_capacity_limit : usize ) -> & Self { for bucket in & self . buckets { // divide by N so that each bucket gets its share bucket . max_capacity_limit . store ( max_capacity_limit / N , Ordering :: Relaxed ) ; } self }
Sets the upper limit for the 'cache_target' linear interpolation region.
Sets the upper limit for the ' cache_target ' linear interpolation region .
&self
max_capacity_limit
usize
&self
max_capacity_limit
usize