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

Method get_schema_list

graphlite/src/session/models.rs:82–89  ·  view source on GitHub ↗

Get cached schema list if valid

(&mut self, current_version: u64)

Source from the content-addressed store, hash-verified

80
81 /// Get cached schema list if valid
82 pub fn get_schema_list(&mut self, current_version: u64) -> Option<Vec<String>> {
83 if self.is_schema_list_valid(current_version) {
84 self.last_schema_access = Some(Instant::now());
85 self.schema_list.clone()
86 } else {
87 None
88 }
89 }
90
91 /// Update schema list cache
92 pub fn set_schema_list(&mut self, schemas: Vec<String>, version: u64) {

Callers

nothing calls this directly

Calls 2

is_schema_list_validMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected