MCPcopy Create free account
hub / github.com/emwalker/digraph / CacheStats

Interface CacheStats

backend/src/git/stats.rs:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45pub trait CacheStats {
46 fn fetch(&self, repo_id: RepoId, oid: &str) -> Result<Option<RepoStats>>;
47
48 fn save(&self, repo_id: RepoId, oid: &str, stats: &RepoStats, ttl: Option<u32>) -> Result<()>;
49}
50
51pub struct FetchStats {
52 pub viewer: Arc<Viewer>,

Callers

nothing calls this directly

Implementers 1

mod.rsbackend/src/redis/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected