MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / is_expired

Method is_expired

core/cache.py:27–29  ·  view source on GitHub ↗

Check if cache entry has expired.

(self)

Source from the content-addressed store, hash-verified

25 checksum: str
26
27 def is_expired(self) -> bool:
28 """Check if cache entry has expired."""
29 return datetime.now(timezone.utc) >= self.expires_at
30
31 def __hash__(self) -> str:
32 """Get cache entry hash."""

Callers 4

getMethod · 0.95
cleanup_expiredMethod · 0.95
runMethod · 0.45

Calls

no outgoing calls

Tested by 1