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

Interface CacheKey

graphlite/src/cache/mod.rs:93–101  ·  view source on GitHub ↗

Generic cache key trait

Source from the content-addressed store, hash-verified

91
92/// Generic cache key trait
93pub trait CacheKey:
94 std::fmt::Debug + Clone + PartialEq + Eq + std::hash::Hash + Send + Sync
95{
96 #[allow(dead_code)] // ROADMAP v0.5.0 - Cache key generation for query caching (see ROADMAP.md §9)
97 fn cache_key(&self) -> String;
98 fn tags(&self) -> Vec<String> {
99 Vec::new()
100 }
101}
102
103/// Generic cached value trait
104pub trait CacheValue: std::fmt::Debug + Clone + Send + Sync {

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