Tauri Core API - v2.6.0
    Preparing search index...

    Function cacheDir

    • Returns the path to the user's cache directory.

      • Linux: Resolves to $XDG_CACHE_HOME or $HOME/.cache.
      • macOS: Resolves to $HOME/Library/Caches.
      • Windows: Resolves to {FOLDERID_LocalAppData}.

      Returns Promise<string>

      import { cacheDir } from '@tauri-apps/api/path';
      const cacheDirPath = await cacheDir();

      1.0.0