Skip to main content

Module cache

Module cache 

Source
Expand description

Content-addressable lint cache.

Each contract’s lint result is cached using a hash of (YAML content + rule config). Cache is stored in .pv/cache/lint/. Automatically invalidated when any input changes.

Spec: docs/specifications/sub/lint.md Section 10

Structs§

CacheEntry
Cache entry for one contract’s lint results.
CacheStats
Cache statistics.

Functions§

cache_clear
Clear all cached results.
cache_dir
Get the cache directory path.
cache_get
Look up a cached result.
cache_put
Store a lint result in the cache.
content_hash
Compute a content hash for cache key.