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

Method clear

src/models/lru_cache.rs:48–50  ·  view source on GitHub ↗
(&self, idx: usize)

Source from the content-addressed store, hash-verified

46 }
47
48 fn clear(&self, idx: usize) {
49 self.inner[idx].store(u64::MAX, Ordering::SeqCst)
50 }
51
52 fn on_cache_miss(&self, counter: u32, key: u64) {
53 let i = Self::idx(counter);

Callers 6

on_cache_hitMethod · 0.80
removeMethod · 0.80
prepare_glove_datasetFunction · 0.80
prepare_glove_datasetFunction · 0.80

Calls

no outgoing calls

Tested by 4

prepare_glove_datasetFunction · 0.64
prepare_glove_datasetFunction · 0.64