Start background monitoring task
(&self)
| 398 | |
| 399 | /// Start background monitoring task |
| 400 | pub fn start_monitoring(&self) -> tokio::task::JoinHandle<()> { |
| 401 | let manager = self.clone(); |
| 402 | |
| 403 | tokio::spawn(async move { |
| 404 | let mut interval = tokio::time::interval(manager.config.check_interval); |
| 405 | |
| 406 | loop { |
| 407 | interval.tick().await; |
| 408 | manager.check_memory_pressure(); |
| 409 | } |
| 410 | }) |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | impl Clone for MemoryAwareCacheManager { |
nothing calls this directly
no test coverage detected