Invalidates a single cached secret, returning whether the cache contained it.
(&self, id: CatalogItemId)
| 144 | |
| 145 | /// Invalidates a single cached secret, returning whether the cache contained it. |
| 146 | pub fn invalidate(&self, id: CatalogItemId) -> bool { |
| 147 | self.cache |
| 148 | .write() |
| 149 | .expect("CachingSecretsReader panicked!") |
| 150 | .remove(&id) |
| 151 | .is_some() |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | #[async_trait] |
no test coverage detected