Tauri cacheDir
cacheDir(): Promise
<string
>
返回用户缓存目录的路径。
特定于平台
- Linux:解析为
$XDG_CACHE_HOME
$HOME/.cache
- macOS:解析为
$HOME/Library/Caches
- Windows:解析为
{FOLDERID_LocalAppData}
例
import { cacheDir } from '@tauri-apps/api/path';
const cacheDirPath = await cacheDir();
Since: 1.0.0
Returns: Promise
<string
>