Get cache statistics
(&self)
| 305 | |
| 306 | /// Get cache statistics |
| 307 | pub fn stats(&self) -> PlanCacheStats { |
| 308 | let mut stats = self.stats.read().unwrap().clone(); |
| 309 | stats.current_entries = self.entries.read().unwrap().len(); |
| 310 | stats.current_memory_bytes = *self.current_memory.read().unwrap(); |
| 311 | stats |
| 312 | } |
| 313 | |
| 314 | /// Clear all cached plans |
| 315 | pub fn clear(&self) { |
no test coverage detected