Skip to main content

cache_path

Function cache_path 

Source
pub fn cache_path(cache_dir: &Path, cache_key: &str) -> Option<PathBuf>
Expand description

Resolve the cache file path for cache_key under cache_dir. Creates cache_dir (and any missing parents) on first use. Returns None when the directory could not be created - consumers should fall through to a non-cached compile in that case.