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

Method set_timeout

src/services/file_cache.py:513–516  ·  view source on GitHub ↗

Set cache timeout in seconds

(self, timeout: int)

Source from the content-addressed store, hash-verified

511 return self.cache_dir / filename
512
513 def set_timeout(self, timeout: int):
514 """Set cache timeout in seconds"""
515 self.default_timeout = max(0, int(timeout))
516 debug_logger.log_info(f"Cache timeout updated to {timeout} seconds")
517
518 def get_timeout(self) -> int:
519 """Get current cache timeout"""

Callers 2

lifespanFunction · 0.80

Calls 1

log_infoMethod · 0.80

Tested by

no test coverage detected