MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / set_cache_timeout

Method set_cache_timeout

src/core/config.py:384–388  ·  view source on GitHub ↗

Set cache timeout in seconds

(self, timeout: int)

Source from the content-addressed store, hash-verified

382 return self._config.get("cache", {}).get("timeout", 7200)
383
384 def set_cache_timeout(self, timeout: int):
385 """Set cache timeout in seconds"""
386 if "cache" not in self._config:
387 self._config["cache"] = {}
388 self._config["cache"]["timeout"] = timeout
389
390 @property
391 def cache_base_url(self) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected