Get cache statistics (for monitoring)
(&self)
| 150 | |
| 151 | /// Get cache statistics (for monitoring) |
| 152 | pub fn get_stats(&self) -> CatalogCacheStats { |
| 153 | CatalogCacheStats { |
| 154 | schema_list_cached: self.schema_list.is_some(), |
| 155 | graph_schemas_cached: self.graphs_by_schema.len(), |
| 156 | last_schema_access: self.last_schema_access, |
| 157 | last_graph_access: self.last_graph_access, |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | impl Default for SessionCatalogCache { |