@ms-cloudpack/remote-cache
v0.9.19
Published
Manages syncing the local Cloudpack cached assets to/from a remote storage service.
Downloads
2,585
Keywords
Readme
@ms-cloudpack/remote-cache
This package is a wrapper around the Azure Storage SDK that provides a simple interface for uploading and downloading files and folders to and from Azure Blob Storage. It also includes a helper function for generating a SAS token for a storage account.
Usage
import { createRemoteCacheClient } from '@ms-cloudpack/remote-cache';
const client = await createRemoteCacheClient({
storageAccount: 'my-storage-account',
container: 'my-container',
permissions: { read: true, write: false },
});
await client.downloadFolder('my-folder', 'download-it-to-this-path');