MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / set_graph_list

Method set_graph_list

graphlite/src/session/models.rs:124–128  ·  view source on GitHub ↗

Update graph list cache for a schema

(&mut self, schema_name: String, graphs: Vec<String>, version: u64)

Source from the content-addressed store, hash-verified

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) {

Callers 1

list_graphsMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected