MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / set

Method set

cache/local_cache.py:73–81  ·  view source on GitHub ↗

Set the value of a key in the cache :param key: :param value: :param expire_time: :return:

(self, key: str, value: Any, expire_time: int)

Source from the content-addressed store, hash-verified

71 return value
72
73 def set(self, key: str, value: Any, expire_time: int) -> None:
74 """
75 Set the value of a key in the cache
76 :param key:
77 :param value:
78 :param expire_time:
79 :return:
80 """
81 self._cache_container[key] = (value, time.time() + expire_time)
82
83 def keys(self, pattern: str) -> List[str]:
84 """

Callers 1

local_cache.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected