Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/base/base
/ record_hit
Method
record_hit
crates/proof/rpc/src/cache.rs:31–33 ·
view source on GitHub ↗
Records a cache hit.
(&self)
Source
from the content-addressed store, hash-verified
29
30
/// Records a cache hit.
31
pub fn record_hit(&self) {
32
self.hits.fetch_add(1, Ordering::Relaxed);
33
}
34
35
/// Records a cache miss.
36
pub fn record_miss(&self) {
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