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

Method get_cache

apps/application/serializers/common.py:425–430  ·  view source on GitHub ↗
(chat_id)

Source from the content-addressed store, hash-verified

423
424 @staticmethod
425 def get_cache(chat_id):
426 chat_info_dict = cache.get(Cache_Version.CHAT.get_key(key=chat_id),
427 version=Cache_Version.CHAT_INFO.get_version())
428 if chat_info_dict:
429 return ChatInfo.map_to_chat_info(chat_info_dict)
430 return None
431
432
433def update_resource_mapping_by_application(application_id: str, other_resource_mapping=None):

Callers 4

chatMethod · 0.80
generate_chatMethod · 0.80
get_chat_infoMethod · 0.80
get_chat_recordMethod · 0.80

Calls 4

get_keyMethod · 0.80
get_versionMethod · 0.80
map_to_chat_infoMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected