MCPcopy
hub / github.com/saltstack/salt / flush

Method flush

salt/cache/__init__.py:229–248  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 15

flushFunction · 0.95
perform_shedFunction · 0.95
noxfile.pyFile · 0.45
writeMethod · 0.45
runMethod · 0.45
runMethod · 0.45
_property_data_filesMethod · 0.45
_register_resourcesMethod · 0.45
check_minion_cacheMethod · 0.45
change_stateMethod · 0.45
delete_keyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected