Remove the key from the cache bank with all the key content. If no key is specified remove the entire bank with all keys and sub-banks inside. :param bank: The name of the location inside the cache which will hold the key and its associated data.
(self, bank, key=None)
| 227 | return self.modules[fun](bank, key, **self.kwargs) |
| 228 | |
| 229 | def flush(self, bank, key=None): |
| 230 | """ |
| 231 | Remove the key from the cache bank with all the key content. If no key is specified remove |
| 232 | the entire bank with all keys and sub-banks inside. |
| 233 | |
| 234 | :param bank: |
| 235 | The name of the location inside the cache which will hold the key |
| 236 | and its associated data. |
| 237 | |
| 238 | :param key: |
| 239 | The name of the key (or file inside a directory) which will hold |
| 240 | the data. File extensions should not be provided, as they will be |
| 241 | added by the driver itself. |
| 242 | |
| 243 | :raises SaltCacheError: |
| 244 | Raises an exception if cache driver detected an error accessing data |
| 245 | in the cache backend (auth, permissions, etc). |
| 246 | """ |
| 247 | fun = f"{self.driver}.flush" |
| 248 | return self.modules[fun](bank, key=key, **self.kwargs) |
| 249 | |
| 250 | def list(self, bank): |
| 251 | """ |
no outgoing calls
no test coverage detected