Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
access
Method · 0.80
remove_lru
Method · 0.80
Calls
4
clone
Method · 0.80
clear
Method · 0.45
iter
Method · 0.45
insert
Method · 0.45
Tested by
no test coverage detected