MCPcopy Create free account
hub / github.com/FastLED/FastLED / _update_cache_entry

Method _update_cache_entry

ci/fingerprint/core.py:208–223  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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 """

Callers 1

has_changedMethod · 0.95

Calls 3

_save_cacheMethod · 0.95
CacheEntryClass · 0.70
resolveMethod · 0.45

Tested by

no test coverage detected