BlockSuite API Documentation / @blocksuite/store / MemoryBlobCRUD
Class: MemoryBlobCRUD
just for test
Constructors
new MemoryBlobCRUD()
new MemoryBlobCRUD():
MemoryBlobCRUD
Returns
Properties
_map
private
readonly
_map:Map
<string
,Blob
>
Source
packages/framework/store/src/adapter/assets.ts:7
Methods
delete()
delete(
key
):void
Parameters
• key: string
Returns
void
Source
packages/framework/store/src/adapter/assets.ts:30
get()
get(
key
):null
|Blob
Parameters
• key: string
Returns
null
| Blob
Source
packages/framework/store/src/adapter/assets.ts:9
list()
list():
string
[]
Returns
string
[]
Source
packages/framework/store/src/adapter/assets.ts:34
set()
set(value)
set(
value
):Promise
<string
>
Parameters
• value: Blob
Returns
Promise
<string
>
Source
packages/framework/store/src/adapter/assets.ts:13
set(key, value)
set(
key
,value
):Promise
<string
>
Parameters
• key: string
• value: Blob
Returns
Promise
<string
>
Source
packages/framework/store/src/adapter/assets.ts:14