Returns the path to the user's cache directory.
$XDG_CACHE_HOME
$HOME/.cache
$HOME/Library/Caches
{FOLDERID_LocalAppData}
import { cacheDir } from '@tauri-apps/api/path';const cacheDirPath = await cacheDir(); Copy
import { cacheDir } from '@tauri-apps/api/path';const cacheDirPath = await cacheDir();
1.0.0
Returns the path to the user's cache directory.
Platform-specific
$XDG_CACHE_HOME
or$HOME/.cache
.$HOME/Library/Caches
.{FOLDERID_LocalAppData}
.