Raxol.PreCommit.Cache (Raxol v2.0.1)
View SourceCache system for pre-commit checks to enable incremental checking.
Caches check results based on file hashes to skip unchanged files, significantly improving performance for large codebases.
Features
- File hash-based caching
- Automatic cache invalidation on file changes
- Per-check result storage
- Configurable cache directory
Summary
Functions
Clear the entire cache.
Get cached result for a file and check combination.
Get cache statistics.
Clear cache entries older than the specified duration.
Save a check result to the cache.
Functions
Clear the entire cache.
Get cached result for a file and check combination.
Returns {:ok, result} if cache hit and file unchanged, :miss otherwise.
Get cache statistics.
Clear cache entries older than the specified duration.
Save a check result to the cache.