Clear all cached results
(&self)
| 522 | |
| 523 | /// Clear all cached results |
| 524 | pub fn clear(&self) { |
| 525 | self.l1_cache.write().unwrap().clear(); |
| 526 | self.l2_cache.write().unwrap().clear(); |
| 527 | *self.l1_current_memory.write().unwrap() = 0; |
| 528 | *self.l2_current_memory.write().unwrap() = 0; |
| 529 | *self.l1_lru.write().unwrap() = LRUTracker::new(); |
| 530 | *self.l2_lru.write().unwrap() = LRUTracker::new(); |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | /// Helper to create query cache key from query string and parameters |
no test coverage detected