MCPcopy
hub / github.com/HKUDS/DeepCode / _get_cache_key

Method _get_cache_key

tools/code_indexer.py:727–733  ·  view source on GitHub ↗

Generate cache key for file content

(self, file_path: Path)

Source from the content-addressed store, hash-verified

725 return filtered_files
726
727 def _get_cache_key(self, file_path: Path) -> str:
728 """Generate cache key for file content"""
729 try:
730 stats = file_path.stat()
731 return f"{file_path}:{stats.st_mtime}:{stats.st_size}"
732 except (OSError, PermissionError):
733 return str(file_path)
734
735 def _manage_cache_size(self):
736 """Manage cache size to stay within limits"""

Callers 1

analyze_file_contentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected