Skip to main content

store

Function store 

Source
pub fn store(
    key: &CacheKey,
    chunk: &Chunk,
    manifest: Option<&ContextManifest>,
) -> Result<()>
Expand description

Persist chunk to the shared cache directory under key. Atomic: a temp file is written then renamed into place. Concurrent invocations on the same key race safely.