Expand description
Content-addressed derivation path cache (redb-backed). Content-addressed derivation path cache.
Maps (lock_hash, source_hash, attr_path) → (drvPath, outPath) using redb.
Survives process restarts. Designed to avoid full nixpkgs evaluation when
the result is already known for a given flake.lock + flake.nix + attribute.
The cache file lives at ~/.cache/sui/drv-cache.redb by default.
Structs§
- DrvCache
- redb-backed derivation path cache.
- DrvCache
Entry - A cached derivation path entry.
Enums§
- DrvCache
Error - Errors from the derivation cache.
Functions§
- init_
global_ cache - Initialize the global derivation cache (call once at startup).
- with_
cache - Access the global cache for a lookup.
- with_
cache_ mut - Access the global cache for a write.