BlockSuite API Documentation / @blocksuite/store / MemoryBlobManager
Class: MemoryBlobManager ​
Contents ​
Constructors ​
new MemoryBlobManager(undefined) ​
new MemoryBlobManager():
MemoryBlobManager
Returns ​
Properties ​
_blobsRef ​
private
readonly
_blobsRef:Map
<string
,number
>
Source ​
packages/store/src/adapter/assets.ts:7
_map ​
private
readonly
_map:Map
<string
,Blob
>
Source ​
packages/store/src/adapter/assets.ts:6
Methods ​
decreaseRef() ​
decreaseRef(
blobId
):void
Parameters ​
• blobId: string
Returns ​
void
Source ​
packages/store/src/adapter/assets.ts:43
delete() ​
delete(
key
):Promise
<void
>
Parameters ​
• key: string
Returns ​
Promise
<void
>
Source ​
packages/store/src/adapter/assets.ts:19
gc() ​
gc():
Promise
<void
>
Returns ​
Promise
<void
>
Source ​
packages/store/src/adapter/assets.ts:27
get() ​
get(
key
):Promise
<null
|Blob
>
Parameters ​
• key: string
Returns ​
Promise
<null
| Blob
>
Source ​
packages/store/src/adapter/assets.ts:9
increaseRef() ​
increaseRef(
blobId
):void
Parameters ​
• blobId: string
Returns ​
void
Source ​
packages/store/src/adapter/assets.ts:38
list() ​
list():
Promise
<string
[]>
Returns ​
Promise
<string
[]>
Source ​
packages/store/src/adapter/assets.ts:23
set() ​
set(
value
,key
?):Promise
<string
>
Parameters ​
• value: Blob
• key?: string
Returns ​
Promise
<string
>
Source ​
packages/store/src/adapter/assets.ts:13
Generated using typedoc-plugin-markdown and TypeDoc