MCPcopy Create free account
hub / github.com/Firstyear/opensuse-proxy-cache / CacheStats

Class CacheStats

arc-disk-cache/src/lib.rs:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37#[derive(Clone, Debug, Default)]
38pub struct CacheStats {
39 pub ops: u32,
40 pub hits: u32,
41 pub ratio: f64,
42
43 // As of last write.
44 pub p_weight: u64,
45 pub freq: u64,
46 pub recent: u64,
47 pub shared_max: u64,
48 pub all_seen_keys: u64,
49}
50
51impl CacheStats {
52 fn update(&mut self, tstats: TraceStat) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected