Update cache with new entry and save to disk. Args: file_path: Path to file being cached modification_time: File modification time md5_hash: File content hash
(
self, file_path: Path, modification_time: float, md5_hash: str
)
| 206 | return True # Assume changed since we have no previous state to compare |
| 207 | |
| 208 | def _update_cache_entry( |
| 209 | self, file_path: Path, modification_time: float, md5_hash: str |
| 210 | ) -> None: |
| 211 | """ |
| 212 | Update cache with new entry and save to disk. |
| 213 | |
| 214 | Args: |
| 215 | file_path: Path to file being cached |
| 216 | modification_time: File modification time |
| 217 | md5_hash: File content hash |
| 218 | """ |
| 219 | file_key = str(file_path.resolve()) |
| 220 | self.cache[file_key] = CacheEntry( |
| 221 | modification_time=modification_time, md5_hash=md5_hash |
| 222 | ) |
| 223 | self._save_cache() |
| 224 | |
| 225 | def get_cache_stats(self) -> dict[str, int]: |
| 226 | """ |
no test coverage detected