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

Method recent_events

graphlite/src/cache/invalidation.rs:302–309  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Cache invalidation management (see ROADMAP.md §9)

(
        &self,
        limit: usize,
    )

Source from the content-addressed store, hash-verified

300 /// Get recent invalidation events
301 #[allow(dead_code)] // ROADMAP v0.5.0 - Cache invalidation management (see ROADMAP.md §9)
302 pub fn recent_events(
303 &self,
304 limit: usize,
305 ) -> Vec<(InvalidationEvent, InvalidationResult, Instant)> {
306 let history = self.event_history.read().unwrap();
307 let limit = limit.min(history.len());
308 history.iter().rev().take(limit).cloned().collect()
309 }
310
311 fn find_dependent_entries(&self, dependency_type: &DependencyType) -> HashSet<String> {
312 let dep_key = self.dependency_key(dependency_type);

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.80
lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected