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

Method clear

graphlite/src/session/models.rs:142–149  ·  view source on GitHub ↗

Clear all cached data

(&mut self)

Source from the content-addressed store, hash-verified

140
141 /// Clear all cached data
142 pub fn clear(&mut self) {
143 self.schema_list = None;
144 self.schema_list_version = 0;
145 self.graphs_by_schema.clear();
146 self.graphs_version = 0;
147 self.last_schema_access = None;
148 self.last_graph_access = None;
149 }
150
151 /// Get cache statistics (for monitoring)
152 pub fn get_stats(&self) -> CatalogCacheStats {

Callers 4

clear_parametersMethod · 0.45
resetMethod · 0.45
clear_catalog_cacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected