Clear only the in-memory cache (not persistent storage)
(&self)
| 501 | |
| 502 | /// Clear only the in-memory cache (not persistent storage) |
| 503 | pub fn clear_cache(&self) -> Result<(), StorageError> { |
| 504 | debug!("Clearing storage cache"); |
| 505 | self.cache.clear()?; |
| 506 | debug!("Successfully cleared storage cache"); |
| 507 | Ok(()) |
| 508 | } |
| 509 | |
| 510 | /// Get cache statistics (entries count, memory bytes estimate) |
| 511 | pub fn get_cache_stats(&self) -> (usize, usize) { |