Expand description
The local L0 disk store — the injectable seam this crate’s server
logic reads/writes through. Never touched directly by tests; tests
use MockLocalCacheStore the same way sui-dockerfile-wrapper’s
tests use MockCacheBackend.
Structs§
- Mock
Local Cache Store - In-memory mock for unit tests. Never touches a filesystem.
- Real
Local Cache Store - Real disk-backed implementation. A
DaemonSetdeployment backsrootwith ahostPathvolume so entries survive pod restarts — see thesui-dockerfile-node-cache-daemonHelm chart values.
Traits§
- Local
Cache Store - Abstraction over the node-local content-addressed cache directory.
Content hashes are opaque strings (the same
content_hashaDockerfileGraphnode already carries); this trait does not interpret them beyond using them as a lookup key.
Functions§
- ensure_
root_ exists - Best-effort helper: ensure a root directory exists before serving.
Kept as a free function (not folded into
RealLocalCacheStore::new) so construction stays infallible and synchronous; callers await this once at daemon startup.