pub fn access(&mut self, key: &K) -> Option<V> {
        if let Some(node) = self.values.get_mut(key) {
            self.expirations.reset(&node.dq_key, self.expires);
            trace!("reset expiration for cache value associated with key");

            return Some(node.value.clone());
        }

        None
    }
/// Attempts to access an item by key.
///
/// If a value is returned, this key will not be considered for eviction
/// for another `expires` span of time.
Attempts to access an item by key.
If a value is returned, this key will not be considered for eviction
for another `expires` span of time.
Attempts to access an item by key . If a value is returned this key will not be considered for eviction for another ` expires ` span of time .
pub fn access(&mut self, key: &K) -> Option<V> {
        if let Some(node) = self.values.get_mut(key) {
            self.expirations.reset(&node.dq_key, self.expires);
            trace!("reset expiration for cache value associated with key");
            return Some(node.value.clone());
        }
        None
    }
pub fn access ( & mut self , key : & K ) -> Option < V > { if let Some ( node ) = self . values . get_mut ( key ) { self . expirations . reset ( & node . dq_key , self . expires ) ; trace ! ( " " ) ; return Some ( node . value . clone ( ) ) ; } None }
Attempts to access an item by key.
Attempts to access an item by key .
&mut self
key
&K
&mut self
key
&K