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

Method record_event_result

graphlite/src/cache/invalidation.rs:419–427  ·  view source on GitHub ↗
(&self, event: InvalidationEvent, result: InvalidationResult)

Source from the content-addressed store, hash-verified

417 }
418
419 fn record_event_result(&self, event: InvalidationEvent, result: InvalidationResult) {
420 let mut history = self.event_history.write().unwrap();
421
422 if history.len() >= self.max_history_size {
423 history.remove(0);
424 }
425
426 history.push((event, result, Instant::now()));
427 }
428
429 #[allow(dead_code)] // ROADMAP v0.5.0 - Cache invalidation management (see ROADMAP.md §9)
430 fn remove_dependency(&self, entry_key: &str) {

Callers 1

handle_eventMethod · 0.80

Calls 3

unwrapMethod · 0.80
lenMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected