Get cached graph list for a schema if valid
(
&mut self,
schema_name: &str,
current_version: u64,
)
| 108 | |
| 109 | /// Get cached graph list for a schema if valid |
| 110 | pub fn get_graph_list( |
| 111 | &mut self, |
| 112 | schema_name: &str, |
| 113 | current_version: u64, |
| 114 | ) -> Option<Vec<String>> { |
| 115 | if self.is_graph_list_valid(schema_name, current_version) { |
| 116 | self.last_graph_access = Some(Instant::now()); |
| 117 | self.graphs_by_schema.get(schema_name).cloned() |
| 118 | } else { |
| 119 | None |
| 120 | } |
| 121 | } |
| 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) { |
nothing calls this directly
no test coverage detected