Skip to main content
Version: v1

BlobCacheStorageService Class

IDocumentStorageService adapter with pre-cached blobs.

Signature

export declare class BlobCacheStorageService extends DocumentStorageServiceProxy

Extends: DocumentStorageServiceProxy

Constructors

ConstructorDescription
(constructor)(internalStorageService, blobs)Constructs a new instance of the BlobCacheStorageService class

Properties

PropertyTypeDescription
policiesIDocumentStorageServicePolicies | undefined

Methods

MethodReturn TypeDescription
readBlob(id)Promise<ArrayBufferLike>

Constructor Details

(constructor)

Constructs a new instance of the BlobCacheStorageService class

Signature

constructor(internalStorageService: IDocumentStorageService, blobs: Map<string, ArrayBufferLike>);

Parameters

ParameterTypeDescription
internalStorageServiceIDocumentStorageService
blobsMap<string, ArrayBufferLike>

Property Details

policies

Signature

get policies(): IDocumentStorageServicePolicies | undefined;

Type: IDocumentStorageServicePolicies | undefined

Method Details

readBlob

Signature

readBlob(id: string): Promise<ArrayBufferLike>;

Parameters

ParameterTypeDescription
idstring

Returns

Return type: Promise<ArrayBufferLike>