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

Method set_cache

apps/application/serializers/common.py:407–410  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

405 ip_address=chat_record_dict.get('ip_address'))
406
407 def set_cache(self):
408 cache.set(Cache_Version.CHAT.get_key(key=self.chat_id), self.to_dict(),
409 version=Cache_Version.CHAT_INFO.get_version(),
410 timeout=60 * 30)
411
412 @staticmethod
413 def map_to_chat_info(chat_info_dict):

Callers 6

generate_chatMethod · 0.95
handlerMethod · 0.80
get_chat_infoMethod · 0.80
open_work_flowMethod · 0.80
open_simpleMethod · 0.80
handlerMethod · 0.80

Calls 4

to_dictMethod · 0.95
get_keyMethod · 0.80
get_versionMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected