Invalidate cache for a specific table (e.g., after ALTER TABLE)
(&self, table_name: &str)
| 67 | |
| 68 | /// Invalidate cache for a specific table (e.g., after ALTER TABLE) |
| 69 | pub fn invalidate(&self, table_name: &str) { |
| 70 | self.cache.write().unwrap().remove(table_name); |
| 71 | } |
| 72 | |
| 73 | /// Clear entire cache (e.g., after CREATE TABLE or DROP TABLE) |
| 74 | pub fn clear(&self) { |