pub fn with_hasher(mem_len: usize, hash_builder: S) -> DynamicCacheLocal<K, V, S> {
        // Just make it work if an invalid value is thrown in
        let mem_len = mem_len.clamp(2, u32::MAX as usize);

        Self {
            map: HashMap::with_hasher(hash_builder),
            list: VecDeque::with_capacity(mem_len),
            mem_len,
            size: 0,
            hits: 0,
            misses: 0,
        }
    }
/// Create and initialize a new cache, using the given hash builder to hash keys. The same
/// warnings given for [`HashMap::with_hasher`] apply here.
Create and initialize a new cache, using the given hash builder to hash keys. The same
warnings given for [`HashMap::with_hasher`] apply here.
Create and initialize a new cache using the given hash builder to hash keys . The same warnings given for [ ` HashMap :: with_hasher ` ] apply here .
pub fn with_hasher(mem_len: usize, hash_builder: S) -> DynamicCacheLocal<K, V, S> {
        // Just make it work if an invalid value is thrown in
        let mem_len = mem_len.clamp(2, u32::MAX as usize);
        Self {
            map: HashMap::with_hasher(hash_builder),
            list: VecDeque::with_capacity(mem_len),
            mem_len,
            size: 0,
            hits: 0,
            misses: 0,
        }
    }
pub fn with_hasher ( mem_len : usize , hash_builder : S ) -> DynamicCacheLocal < K , V , S > { // Just make it work if an invalid value is thrown in let mem_len = mem_len . clamp ( 2 , u32 :: MAX as usize ) ; Self { map : HashMap :: with_hasher ( hash_builder ) , list : VecDeque :: with_capacity ( mem_len ) , mem_len , size : 0 , hits : 0 , misses : 0 , } }
Create and initialize a new cache, using the given hash builder to hash keys.
Create and initialize a new cache using the given hash builder to hash keys .
mem_len
usize
hash_builder
S