BlobCacheStorageService Class
IDocumentStorageService adapter with pre-cached blobs.
Signature
export declare class BlobCacheStorageService extends DocumentStorageServiceProxy
Extends: DocumentStorageServiceProxy
Constructors
Constructor | Description |
---|---|
(constructor)(internalStorageService, blobs) | Constructs a new instance of the BlobCacheStorageService class |
Properties
Property | Type | Description |
---|---|---|
policies | IDocumentStorageServicePolicies | undefined |
Methods
Method | Return Type | Description |
---|---|---|
readBlob(id) | Promise<ArrayBufferLike> |
Constructor Details
(constructor)
Constructs a new instance of the BlobCacheStorageService
class
Signature
constructor(internalStorageService: IDocumentStorageService, blobs: Map<string, ArrayBufferLike>);
Parameters
Parameter | Type | Description |
---|---|---|
internalStorageService | IDocumentStorageService | |
blobs | Map<string, ArrayBufferLike> |
Property Details
policies
Signature
get policies(): IDocumentStorageServicePolicies | undefined;
Type: IDocumentStorageServicePolicies | undefined
Method Details
readBlob
Signature
readBlob(id: string): Promise<ArrayBufferLike>;
Parameters
Parameter | Type | Description |
---|---|---|
id | string |
Returns
Return type: Promise<ArrayBufferLike>