Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosdata/cosdata
/ is_empty
Method
is_empty
src/models/lru_cache.rs:44–46 ·
view source on GitHub ↗
(&self, idx: usize)
Source
from the content-addressed store, hash-verified
42
}
43
44
fn is_empty(&self, idx: usize) -> bool {
45
self.inner[idx].load(Ordering::SeqCst) == u64::MAX
46
}
47
48
fn clear(&self, idx: usize) {
49
self.inner[idx].store(u64::MAX, Ordering::SeqCst)
Callers
2
on_cache_miss
Method · 0.45
on_cache_hit
Method · 0.45
Calls
1
load
Method · 0.80
Tested by
no test coverage detected