pub fn save_cache(cache: &Cache) -> Result<()>
Written the same way skill::save_state writes: temp file plus rename, so two bb processes racing cannot leave a truncated file that then silently disables the check.
skill::save_state
rename
bb