Evict one cached object after an externally journaled deletion.
(&self, hash: &Hash)
| 668 | |
| 669 | /// Evict one cached object after an externally journaled deletion. |
| 670 | pub fn evict(&self, hash: &Hash) { |
| 671 | if let Ok(mut cache) = self.cache.write() { |
| 672 | cache.remove(hash); |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | /// Clear the in-memory cache. |
| 677 | /// |
no test coverage detected