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

Method get_graph_list

graphlite/src/session/models.rs:110–121  ·  view source on GitHub ↗

Get cached graph list for a schema if valid

(
        &mut self,
        schema_name: &str,
        current_version: u64,
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

is_graph_list_validMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected