pub fn cache_always(&self, key: String, value: Arc<DecoderImpl::Output>) {
        let weak = Arc::downgrade(&value);
        self.pinned_entries
            .write()
            .unwrap()
            .insert(key.clone(), value);
        self.weak_refs.write().unwrap().insert(key, weak);
    }
/// Pin an item, so that it is always present in the cache until explicitly removed.
Pin an item, so that it is always present in the cache until explicitly removed.
Pin an item so that it is always present in the cache until explicitly removed .
pub fn cache_always(&self, key: String, value: Arc<DecoderImpl::Output>) {
        let weak = Arc::downgrade(&value);
        self.pinned_entries
            .write()
            .unwrap()
            .insert(key.clone(), value);
        self.weak_refs.write().unwrap().insert(key, weak);
    }
pub fn cache_always ( & self , key : String , value : Arc < DecoderImpl :: Output > ) { let weak = Arc :: downgrade ( & value ) ; self . pinned_entries . write ( ) . unwrap ( ) . insert ( key . clone ( ) , value ) ; self . weak_refs . write ( ) . unwrap ( ) . insert ( key , weak ) ; }
Pin an item, so that it is always present in the cache until explicitly removed.
Pin an item so that it is always present in the cache until explicitly removed .
&self
key
String
value
Arc<DecoderImpl::Output>
&self
key
String
value
Arc<DecoderImpl::Output>