Returns the path to the suggested directory for your app's cache files. Resolves to ${cacheDir}/${bundleIdentifier}, where bundleIdentifier is the identifier value configured in tauri.conf.json.
${cacheDir}/${bundleIdentifier}
bundleIdentifier
identifier
tauri.conf.json
import { appCacheDir } from '@tauri-apps/api/path';const appCacheDirPath = await appCacheDir(); Copy
import { appCacheDir } from '@tauri-apps/api/path';const appCacheDirPath = await appCacheDir();
1.2.0
Returns the path to the suggested directory for your app's cache files. Resolves to
${cacheDir}/${bundleIdentifier}
, wherebundleIdentifier
is theidentifier
value configured intauri.conf.json
.