(&self)
| 560 | /// It doesn't affect the on-disk storage. |
| 561 | #[cfg(test)] |
| 562 | pub fn clear_cache(&self) { |
| 563 | if let Ok(mut cache) = self.cache.write() { |
| 564 | cache.clear(); |
| 565 | } |
| 566 | } |
| 567 | |
| 568 | /// Get the number of entries currently in the cache. |
| 569 | #[cfg(test)] |