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

Method new

graphlite/src/cache/invalidation.rs:180–189  ·  view source on GitHub ↗
(strategy: InvalidationStrategy, max_history_size: usize)

Source from the content-addressed store, hash-verified

178
179impl InvalidationManager {
180 pub fn new(strategy: InvalidationStrategy, max_history_size: usize) -> Self {
181 Self {
182 strategy,
183 dependencies: Arc::new(RwLock::new(HashMap::new())),
184 reverse_deps: Arc::new(RwLock::new(HashMap::new())),
185 event_history: Arc::new(RwLock::new(Vec::new())),
186 max_history_size,
187 stats: Arc::new(RwLock::new(InvalidationStats::default())),
188 }
189 }
190
191 /// Register a cache entry dependency
192 #[allow(dead_code)] // ROADMAP v0.5.0 - Dependency registration when caching query results

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected