Remove an entry from the cache. Returns `true` if the entry was present.
(&mut self, key: &K)
| 94 | /// |
| 95 | /// Returns `true` if the entry was present. |
| 96 | pub(crate) fn remove(&mut self, key: &K) -> bool { |
| 97 | self.entries.remove(key).is_some() |
| 98 | } |
| 99 | |
| 100 | /// Check if a key is in the cache without updating access time. |
| 101 | pub(crate) fn contains_key(&self, key: &K) -> bool { |