BlobsStorage class

BlobsStorage provides a Storage implementation backed by Azure Blob Storage

Constructors

BlobsStorage(string, string, BlobsStorageOptions)

Constructs a BlobsStorage instance.

Methods

delete(string[])

Removes store items from storage.

read(string[])

Loads store items from storage.

write(StoreItems)

Saves store items to storage.

Constructor Details

BlobsStorage(string, string, BlobsStorageOptions)

Constructs a BlobsStorage instance.

new BlobsStorage(connectionString: string, containerName: string, options?: BlobsStorageOptions)

Parameters

connectionString

string

Azure Blob Storage connection string

containerName

string

Azure Blob Storage container name

options
BlobsStorageOptions

Other options for BlobsStorage

Method Details

delete(string[])

Removes store items from storage.

function delete(keys: string[]): Promise<void>

Parameters

keys

string[]

Array of item keys to remove from the store

Returns

Promise<void>

A promise representing the async operation

read(string[])

Loads store items from storage.

function read(keys: string[]): Promise<StoreItems>

Parameters

keys

string[]

Array of item keys to read

Returns

Promise<StoreItems>

The fetched StoreItems

write(StoreItems)

Saves store items to storage.

function write(changes: StoreItems): Promise<void>

Parameters

changes

StoreItems

Map of StoreItems to write to storage

Returns

Promise<void>

A promise representing the async operation