pub async fn build_state_with_cache(
store_root: PathBuf,
audit_log: Option<PathBuf>,
chain_secret: Option<Vec<u8>>,
auth: AuthLayer,
cache: Option<CacheConfig>,
) -> Result<AppState, String>Expand description
Like build_state but takes an explicit CacheConfig. Passing None
disables caching. This function never reads process environment.