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

Method strategy_name

graphlite/src/cache/invalidation.rs:408–417  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

406 }
407
408 fn strategy_name(&self) -> String {
409 match &self.strategy {
410 InvalidationStrategy::Manual => "Manual".to_string(),
411 InvalidationStrategy::Ttl { .. } => "TTL".to_string(),
412 InvalidationStrategy::TagBased { .. } => "TagBased".to_string(),
413 InvalidationStrategy::Versioned { .. } => "Versioned".to_string(),
414 InvalidationStrategy::WriteThrough { .. } => "WriteThrough".to_string(),
415 InvalidationStrategy::DependencyBased { .. } => "DependencyBased".to_string(),
416 }
417 }
418
419 fn record_event_result(&self, event: InvalidationEvent, result: InvalidationResult) {
420 let mut history = self.event_history.write().unwrap();

Callers 1

handle_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected