MCPcopy Create free account
hub / github.com/cosdata/cosdata / set_evict_hook

Method set_evict_hook

src/models/lru_cache.rs:201–203  ·  view source on GitHub ↗
(&mut self, hook: Option<fn(&V)>)

Source from the content-addressed store, hash-verified

199 }
200
201 pub fn set_evict_hook(&mut self, hook: Option<fn(&V)>) {
202 self.evict_hook = hook;
203 }
204
205 /// Returns an entry from the cache
206 ///

Callers 2

newMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected