Skip to main content

save_blob_cache

Function save_blob_cache 

Source
pub fn save_blob_cache(path: &Path, cache: &BlobSchemaCache) -> Result<()>
Expand description

Persist a blob-to-schema cache atomically.

Writes to <path>.tmp and renames into place, so a crash mid-write cannot leave a partial file that would later parse as corrupt.

§Errors

Returns any I/O error encountered while creating parent directories, writing, or renaming.