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

Method clear_timeout_cache

apps/common/config/embedding_config.py:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54 @staticmethod
55 def clear_timeout_cache():
56 if time.time() - ModelManage.up_clear_time > 60 * 60:
57 threading.Thread(target=lambda: ModelManage.cache.clear_timeout_data()).start()
58 ModelManage.up_clear_time = time.time()
59
60 @staticmethod
61 def delete_key(_id):

Callers 1

get_modelMethod · 0.45

Calls 2

clear_timeout_dataMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected