MCPcopy
hub / github.com/1Panel-dev/MaxKB / get

Method get

apps/common/cache/mem_cache.py:23–31  ·  view source on GitHub ↗
(self, key, default=None, version=None)

Source from the content-addressed store, hash-verified

21 self._set(key, pickled, timeout)
22
23 def get(self, key, default=None, version=None):
24 key = self.make_and_validate_key(key, version=version)
25 with self._lock:
26 if self._has_expired(key):
27 self._delete(key)
28 return default
29 pickled = self._cache[key]
30 self._cache.move_to_end(key, last=False)
31 return pickled
32
33 def clear_by_application_id(self, application_id):
34 delete_keys = []

Callers 15

clear_timeout_dataMethod · 0.95
init_doc.pyFile · 0.45
filter_authorized_idsFunction · 0.45
get_key_pairFunction · 0.45
get_key_pair_by_sqlFunction · 0.45
encryptFunction · 0.45
decryptFunction · 0.45
rsa_long_encryptFunction · 0.45
rsa_long_decryptFunction · 0.45
get_child_link_listMethod · 0.45
reset_beautiful_soupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected