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

Method _get_cache_path

core/cache.py:77–86  ·  view source on GitHub ↗

Get cache file path for checksum. Args: checksum: Cache checksum Returns: Path to cache file

(self, checksum: str)

Source from the content-addressed store, hash-verified

75 return hashlib.sha256(key_str.encode()).hexdigest()
76
77 def _get_cache_path(self, checksum: str) -> Path:
78 """Get cache file path for checksum.
79
80 Args:
81 checksum: Cache checksum
82
83 Returns:
84 Path to cache file
85 """
86 return self.cache_dir / f"{checksum}.json"
87
88 def get(
89 self,

Callers 2

getMethod · 0.95
setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected