MCPcopy Create free account
hub / github.com/brokermr810/QuantDinger / setex

Method setex

backend_api_python/app/utils/cache.py:34–37  ·  view source on GitHub ↗
(self, key: str, ttl: int, value: str)

Source from the content-addressed store, hash-verified

32 return None
33
34 def setex(self, key: str, ttl: int, value: str):
35 with self._lock:
36 expiry = time.time() + ttl
37 self._cache[key] = (value, expiry)
38
39 def delete(self, key: str):
40 with self._lock:

Callers 1

setMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected