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

Function invalidate_cache

ci/js_lint_cache.py:79–92  ·  view source on GitHub ↗

Invalidate the cache when lint/test fails, forcing a re-run next time.

()

Source from the content-addressed store, hash-verified

77
78
79def invalidate_cache() -> None:
80 """Invalidate the cache when lint/test fails, forcing a re-run next time."""
81 cache = _get_js_lint_cache()
82
83 try:
84 cache.invalidate()
85 print_cache_miss(
86 "Lint cache invalidated due to failure - will re-run next time"
87 )
88 except KeyboardInterrupt:
89 _thread.interrupt_main()
90 raise
91 except Exception as e:
92 print_cache_miss(f"Failed to invalidate cache: {e}")
93
94
95def main() -> int:

Callers 1

mainFunction · 0.85

Calls 3

print_cache_missFunction · 0.90
_get_js_lint_cacheFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected