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

Method update_positions

graphlite/src/cache/result_cache.rs:138–143  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

136 }
137
138 fn update_positions(&mut self) {
139 self.positions.clear();
140 for (pos, key) in self.order.iter().enumerate() {
141 self.positions.insert(key.clone(), pos);
142 }
143 }
144}
145
146/// Multi-level result cache

Callers 2

accessMethod · 0.80
remove_lruMethod · 0.80

Calls 4

cloneMethod · 0.80
clearMethod · 0.45
iterMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected