Skip to main content

Module server

Module server 

Source
Expand description

Request-handling core: local-first, remote-on-miss, persist-and-return.

This module is transport-agnostic — it answers a DaemonRequest and produces a DaemonResponse given a LocalCacheStore and a remote StorageBackend. The UDS listen loop (listen, in this crate’s lib.rs) is a thin shell around NodeCacheDaemon::handle_request.

Structs§

NodeCacheDaemon
The daemon’s request-handling core. Generic over the local store so tests can inject crate::store::MockLocalCacheStore and production wires crate::store::RealLocalCacheStore; the remote tier is always the existing dyn StorageBackend trait object, reused unmodified from sui-cache.