Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
class
RequestCache:
Callers
5
test_is_expired_false
Method · 0.95
test_is_expired_true
Method · 0.95
_cleanup_expired
Method · 0.80
handle_request
Method · 0.80
get_cached
Method · 0.80
Calls
no outgoing calls
Tested by
2
test_is_expired_false
Method · 0.76
test_is_expired_true
Method · 0.76