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

Method __hash__

core/cache.py:31–33  ·  view source on GitHub ↗

Get cache entry hash.

(self)

Source from the content-addressed store, hash-verified

29 return datetime.now(timezone.utc) >= self.expires_at
30
31 # No __hash__: it used to return the checksum string, so hash(entry) raised
32 # TypeError and nothing could actually hash an entry. Nothing needs to —
33 # entries are dict values keyed by cache key — so the method is gone rather
34 # than repaired, which also keeps __eq__/__hash__ consistent (pydantic
35 # supplies field equality).
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected