(&self)
| 679 | /// It doesn't affect the on-disk storage. |
| 680 | #[cfg(test)] |
| 681 | pub fn clear_cache(&self) { |
| 682 | if let Ok(mut cache) = self.cache.write() { |
| 683 | cache.clear(); |
| 684 | } |
| 685 | } |
| 686 | |
| 687 | /// Get the number of entries currently in the cache. |
| 688 | #[cfg(test)] |