Expand description
Filesystem-level cache manager.
Responsibilities:
- Deterministically map
AssetContextvalues to on-disk paths - Store / load / delete file blobs
- Compute SHA-256 checksums
The cache manager is unaware of the index — the higher-level
crate::manager::AssetManager combines the two. This split keeps the
filesystem concerns testable in isolation.
Structs§
- Cache
Manager - Manages the physical cache directory layout and file I/O.
- Stored
File - Metadata returned from
CacheManager::store.
Constants§
- DIR_
CHATS - Directory name used for messenger chat attachments.
- DIR_
ISSUES - Directory name used under the cache root for issue attachments.
- DIR_
ISSUE_ COMMENTS - Directory name used for issue comment attachments.
- DIR_KB
- Directory name used for knowledge base attachments.
- DIR_
MERGE_ REQUESTS - Directory name used for merge request attachments.
- DIR_
MR_ COMMENTS - Directory name used for MR note/comment attachments.
Functions§
- resolve_
under_ root - Validate that a cached-asset
local_pathstays underrootand return the absolute path on success. - sha256_
hex - Compute SHA-256 of a byte slice, returned as lower-case hex.