Get cache statistics
(&self)
| 673 | |
| 674 | /// Get cache statistics |
| 675 | pub fn stats(&self) -> SubqueryCacheStats { |
| 676 | let mut stats = self.stats.read().unwrap().clone(); |
| 677 | stats.current_entries = self.entries.read().unwrap().len(); |
| 678 | stats.memory_bytes = *self.current_memory.read().unwrap(); |
| 679 | stats |
| 680 | } |
| 681 | |
| 682 | /// Clear all cached subquery results |
| 683 | pub fn clear(&self) { |