Skip to main content

cache_dir

Function cache_dir 

Source
pub fn cache_dir() -> Option<PathBuf>
Expand description

The app’s cache directory, for what it can fetch or compute again: the system may clear it, and backups skip it. Caches on Apple platforms, %LOCALAPPDATA%\<id>\cache on Windows, $XDG_CACHE_HOME on Linux, the app’s cache directory on Android and HarmonyOS. DAY_CACHE_DIR replaces it; with only DAY_DATA_DIR set it is that directory’s cache.