Skip to content

API > @blocksuite/store > MemoryBlobManager

Class: MemoryBlobManager ​

Constructors ​

constructor ​

new MemoryBlobManager(): MemoryBlobManager

Returns ​

MemoryBlobManager

Properties ​

_blobsRef ​

private readonly _blobsRef: Map< string, number >

Defined In ​

packages/store/src/adapter/assets.ts:8


_map ​

private readonly _map: Map< string, Blob >

Defined In ​

packages/store/src/adapter/assets.ts:7

Methods ​

decreaseRef ​

decreaseRef(blobId): void

Parameters ​

ParameterType
blobIdstring

Returns ​

void

Defined In ​

packages/store/src/adapter/assets.ts:44


delete ​

delete(key): Promise< void >

Parameters ​

ParameterType
keystring

Returns ​

Promise< void >

Defined In ​

packages/store/src/adapter/assets.ts:20


gc ​

gc(): Promise< void >

Returns ​

Promise< void >

Defined In ​

packages/store/src/adapter/assets.ts:28


get ​

get(key): Promise< null | Blob >

Parameters ​

ParameterType
keystring

Returns ​

Promise< null | Blob >

Defined In ​

packages/store/src/adapter/assets.ts:10


increaseRef ​

increaseRef(blobId): void

Parameters ​

ParameterType
blobIdstring

Returns ​

void

Defined In ​

packages/store/src/adapter/assets.ts:39


list ​

list(): Promise< string[] >

Returns ​

Promise< string[] >

Defined In ​

packages/store/src/adapter/assets.ts:24


set ​

set(value, key?): Promise< string >

Parameters ​

ParameterType
valueBlob
key?string

Returns ​

Promise< string >

Defined In ​

packages/store/src/adapter/assets.ts:14