Skip to main contentModule cache
Source - compute_key
- Compute a deterministic SHA-256 cache key from:
- expand_globs
- Expand glob patterns relative to
root and return sorted, deduplicated
file paths. Directories and broken globs are silently skipped. - is_hit
- Returns
true when a cache entry exists for key, meaning the command’s
last run with these exact inputs succeeded. - read_inputs
- Read the contents of each path. Files that cannot be read are silently
omitted (the cache will miss on the next run, triggering a re-execution).
- record_hit
- Persist a successful run in the cache so future invocations can skip it.