| 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(); |