Update graph list cache for a schema
(&mut self, schema_name: String, graphs: Vec<String>, version: u64)
| 122 | |
| 123 | /// Update graph list cache for a schema |
| 124 | pub fn set_graph_list(&mut self, schema_name: String, graphs: Vec<String>, version: u64) { |
| 125 | self.graphs_by_schema.insert(schema_name, graphs); |
| 126 | self.graphs_version = version; |
| 127 | self.last_graph_access = Some(Instant::now()); |
| 128 | } |
| 129 | |
| 130 | /// Invalidate graph list cache (all schemas) |
| 131 | pub fn invalidate_graph_lists(&mut self) { |