MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / clear_by_application_id

Method clear_by_application_id

apps/common/cache/mem_cache.py:33–43  ·  view source on GitHub ↗
(self, application_id)

Source from the content-addressed store, hash-verified

31 return pickled
32
33 def clear_by_application_id(self, application_id):
34 delete_keys = []
35 for key in self._cache.keys():
36 value = self._cache.get(key)
37 if (hasattr(value,
38 'application') and value.application is not None and value.application.id is not None and
39 str(
40 value.application.id) == application_id):
41 delete_keys.append(key)
42 for key in delete_keys:
43 self._delete(key)
44
45 def clear_timeout_data(self):
46 for key in self._cache.keys():

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected