Generate cache key for file content
(self, file_path: Path)
| 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""" |
no outgoing calls
no test coverage detected