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): Promise<void>

Parameters

key: string

Returns

Promise<void>

Source

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


gc()

gc(): Promise<void>

Returns

Promise<void>

Source

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


get()

get(key): Promise<null | Blob>

Parameters

key: string

Returns

Promise<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(): Promise<string[]>

Returns

Promise<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.