MCPcopy Create free account
hub / github.com/SamSaffron/op-cache / CacheStats

Class CacheStats

src/protocol.rs:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25#[derive(Debug, Clone, Serialize, Deserialize)]
26pub struct CacheStats {
27 pub entries: u64,
28 pub hits: u64,
29 pub misses: u64,
30 pub hit_rate: f64,
31}
32
33/// Wire format: [4-byte length (big-endian)][MessagePack payload]
34pub async fn write_message<W, T>(writer: &mut W, msg: &T) -> std::io::Result<()>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected