(strategy: InvalidationStrategy, max_history_size: usize)
| 178 | |
| 179 | impl 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 |
nothing calls this directly
no outgoing calls
no test coverage detected