Skip to main content

Module cache

Module cache 

Source
Expand description

Content-hashing and per-generator caching for skip-if-unchanged builds.

Functionsยง

hash_api
Serialize the API to canonical JSON and return its SHA-256 hex digest.
hash_api_for_generator
Return the SHA-256 hex digest of the API content keyed by generator_name.
invalidate_all
Delete every persisted cache entry under out_dir/.weaveffi-cache/.
read_generator_cache
Read the persisted hash for generator_name from out_dir/.weaveffi-cache/.
write_generator_cache
Persist hash as the cache entry for generator_name.