pub fn pop(&mut self, k: &K) -> bool {
        let key = KeyRef { k };
        match self.map.remove(&key) {
            None => false,
            Some(_) => true,
        }
    }
/// Remove a key from the cache and return a boolean indicating whether the key was in the
/// cache or not.
///
/// # Example
///
/// ```
/// use clock_cache::ClockCache;
/// let mut cache = ClockCache::new(2);
///
/// cache.put(2, "a");
///
/// assert!(!cache.pop(&1));
/// assert!(cache.pop(&2));
/// assert!(!cache.pop(&2));
/// assert_eq!(cache.len(), 0);
/// ```
Remove a key from the cache and return a boolean indicating whether the key was in the
cache or not.
Remove a key from the cache and return a boolean indicating whether the key was in the cache or not .
pub fn pop(&mut self, k: &K) -> bool {
        let key = KeyRef { k };
        match self.map.remove(&key) {
            None => false,
            Some(_) => true,
        }
    }
pub fn pop ( & mut self , k : & K ) -> bool { let key = KeyRef { k } ; match self . map . remove ( & key ) { None => false , Some ( _ ) => true , } }
Remove a key from the cache and return a boolean indicating whether the key was in the
cache or not.
Remove a key from the cache and return a boolean indicating whether the key was in the cache or not .
&mut self
k
&K
example
```
use clock_cache::ClockCache;
let mut cache = ClockCache::new(2).




` ` ` use clock_cache :: ClockCache ; let mut cache = ClockCache :: new ( 2 ) .