MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / CacheValue

Interface CacheValue

graphlite/src/cache/mod.rs:104–109  ·  view source on GitHub ↗

Generic cached value trait

Source from the content-addressed store, hash-verified

102
103/// Generic cached value trait
104pub trait CacheValue: std::fmt::Debug + Clone + Send + Sync {
105 fn size_bytes(&self) -> usize;
106 fn is_valid(&self) -> bool {
107 true
108 }
109}

Callers

nothing calls this directly

Implementers 3

subquery_cache.rsgraphlite/src/cache/subquery_cache.rs
plan_cache.rsgraphlite/src/cache/plan_cache.rs
result_cache.rsgraphlite/src/cache/result_cache.rs

Calls

no outgoing calls

Tested by

no test coverage detected