Skip to main content

Crate graphify_cache

Crate graphify_cache 

Source
Expand description

SHA256-based semantic caching for graphify.

Caches extraction results keyed by content hash so unchanged files are not re-processed.

Enums§

CacheError
Errors from the cache layer.

Functions§

clear_cache
Remove all cached files from the default cache directory.
clear_cache_dir
Remove all cached files from the given cache directory.
file_hash
Compute the SHA256 hex digest of a file’s content.
invalidate_cached
Invalidate the cache entry for a specific file.
load_cached
Load a cached extraction result for path, returning None on cache miss.
load_cached_from
Like load_cached but with an explicit cache directory.
save_cached
Save an extraction result to cache.
save_cached_to
Like save_cached but with an explicit cache directory.