Skip to main content

tmp_entry_dir

Function tmp_entry_dir 

Source
pub fn tmp_entry_dir(
    cache_root: &Path,
    key: &CacheKey,
    random_suffix: &str,
) -> PathBuf
Expand description

The name of the two-phase-store tmp directory for key with the caller-supplied random_suffix, per CACHE-017: .tmp-<hex-key>-<random>. The caller chooses the random suffix; the layout helper only joins it into the canonical shape so concurrent stores of the same key on the same shard do not collide.