Function cacheOnBox

  • Caches the specified object (file) locally, either on the box or within the native Electron app.

    Returns

    A promise that resolves when caching completes (only resolves in Electron; for other environments, caching is attempted but not awaited).

    Parameters

    • path: string

      The destination path where the object should be cached.

    • body: Blob

      The object (file) data to cache, provided as a Blob.

    Returns Promise<void>

Generated using TypeDoc