Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/base/base
/ record_miss
Method
record_miss
crates/proof/rpc/src/cache.rs:36–38 ·
view source on GitHub ↗
Records a cache miss.
(&self)
Source
from the content-addressed store, hash-verified
34
35
/// Records a cache miss.
36
pub fn record_miss(&self) {
37
self.misses.fetch_add(1, Ordering::Relaxed);
38
}
39
40
/// Returns the number of cache hits.
41
pub fn hits(&self) -> u64 {
Callers
2
get
Method · 0.80
test_cache_metrics_hit_rate
Function · 0.80
Calls
no outgoing calls
Tested by
1
test_cache_metrics_hit_rate
Function · 0.64