Expand description
The Cache handle: a filesystem-bound view onto the cache
tree at <workspace-root>/.haz/cache per crate::layout.
The struct is the entry point for every cache operation
(lookup, store, restore, invalidation). It owns a
WritableFilesystem handle, the absolute cache root, the
workspace root (needed by restoration to map workspace-anchored
paths to real filesystem paths), and the active HashAlgo
so that callers do not need to pass these on every call.
Construction is split from the per-operation methods in
sibling modules (crate::lookup, crate::store,
crate::restore) so each can be reviewed in isolation.
Structsยง
- Cache
- Handle to the cache tree rooted at
<workspace_root>/.haz/cache, parameterised over aWritableFilesystembackend.