MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / is_expired

Method is_expired

relay/request_cache.py:27–28  ·  view source on GitHub ↗
(self, ttl_seconds: float)

Source from the content-addressed store, hash-verified

25 created_at: float = field(default_factory=time.time)
26
27 def is_expired(self, ttl_seconds: float) -> bool:
28 return time.time() - self.created_at > ttl_seconds
29
30
31class RequestCache:

Callers 5

test_is_expired_falseMethod · 0.95
test_is_expired_trueMethod · 0.95
_cleanup_expiredMethod · 0.80
handle_requestMethod · 0.80
get_cachedMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_is_expired_falseMethod · 0.76
test_is_expired_trueMethod · 0.76