MCPcopy Create free account
hub / github.com/acking-you/static_flow / evict_lru

Method evict_lru

crates/embedding/src/cache.rs:56–62  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

54 }
55
56 fn evict_lru(&mut self) {
57 while let Some(oldest) = self.order.pop_front() {
58 if self.values.remove(&oldest).is_some() {
59 break;
60 }
61 }
62 }
63}
64
65#[cfg(all(test, not(target_arch = "wasm32")))]

Callers 1

get_or_try_insert_mutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected