lintel-validation-cache
Disk-backed cache for JSON Schema validation results. Caches the outcome of validating a file against a schema so that unchanged files can skip re-validation on subsequent runs.
Part of the Lintel project.
How it works
Each cache entry is keyed by a SHA-256 digest of the file contents and schema URI. When a file hasn't changed since the last run, the cached validation result is returned instantly — no parsing or schema evaluation needed.
Usage
use ;
let cache = new;
// Compute a schema hash once per schema group
let schema = json!;
let hash = schema_hash;
// Cache key = SHA-256(file_content + schema_hash + validate_formats)
let ck = CacheKey ;
let key = cache_key;
drop;
License
Apache-2.0