Skip to content

BlockSuite API Documentation / @blocksuite/sync / MemoryBlobSource

Class: MemoryBlobSource

Defined in: blob/impl/memory.ts:3

Implements

Constructors

new MemoryBlobSource()

new MemoryBlobSource(): MemoryBlobSource

Returns

MemoryBlobSource

Properties

map

readonly map: Map<string, Blob>

Defined in: blob/impl/memory.ts:4


name

name: string = 'memory'

Defined in: blob/impl/memory.ts:6

Implementation of

BlobSource.name


readonly

readonly: boolean = false

Defined in: blob/impl/memory.ts:8

Implementation of

BlobSource.readonly

Methods

delete()

delete(key): Promise<void>

Defined in: blob/impl/memory.ts:10

Parameters

key

string

Returns

Promise<void>

Implementation of

BlobSource.delete


get()

get(key): Promise<null | Blob>

Defined in: blob/impl/memory.ts:15

Parameters

key

string

Returns

Promise<null | Blob>

Implementation of

BlobSource.get


list()

list(): Promise<string[]>

Defined in: blob/impl/memory.ts:19

Returns

Promise<string[]>

Implementation of

BlobSource.list


set()

set(key, value): Promise<string>

Defined in: blob/impl/memory.ts:23

Parameters

key

string

value

Blob

Returns

Promise<string>

Implementation of

BlobSource.set