Skip to content

BlockSuite API Documentation / @blocksuite/store / MemoryBlobManager

Class: MemoryBlobManager

Constructors

new MemoryBlobManager(undefined)

new MemoryBlobManager(): MemoryBlobManager

Returns

MemoryBlobManager

Properties

_blobsRef

private readonly _blobsRef: Map<string, number>

Source

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


_map

private readonly _map: Map<string, Blob>

Source

packages/framework/store/src/adapter/assets.ts:6

Methods

decreaseRef()

decreaseRef(blobId): void

Parameters

blobId: string

Returns

void

Source

packages/framework/store/src/adapter/assets.ts:43


delete()

delete(key): void

Parameters

key: string

Returns

void

Source

packages/framework/store/src/adapter/assets.ts:19


gc()

gc(): void

Returns

void

Source

packages/framework/store/src/adapter/assets.ts:27


get()

get(key): null | Blob

Parameters

key: string

Returns

null | Blob

Source

packages/framework/store/src/adapter/assets.ts:9


increaseRef()

increaseRef(blobId): void

Parameters

blobId: string

Returns

void

Source

packages/framework/store/src/adapter/assets.ts:38


list()

list(): string[]

Returns

string[]

Source

packages/framework/store/src/adapter/assets.ts:23


set()

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

Parameters

value: Blob

key?: string

Returns

Promise<string>

Source

packages/framework/store/src/adapter/assets.ts:13


Generated using TypeDoc and typedoc-plugin-markdown.