Skip to main content

restore_cache_snapshot_blob

Function restore_cache_snapshot_blob 

Source
pub fn restore_cache_snapshot_blob(
    cache: &mut Cache,
    anchor: Option<&SnapshotAnchor>,
) -> Result<(), CacheReplayError>
Expand description

Restores the cache-owned snapshot blob identified by anchor.

ยงErrors

Returns CacheReplayError::SnapshotRestore when the blob is missing, fails to load, fails its content hash check, or fails to restore into the cache.