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

Method new

graphlite/src/cache/result_cache.rs:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106impl<K: Clone + Eq + Hash> LRUTracker<K> {
107 fn new() -> Self {
108 Self {
109 order: VecDeque::new(),
110 positions: HashMap::new(),
111 }
112 }
113
114 fn access(&mut self, key: &K) {
115 if let Some(&pos) = self.positions.get(key) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected