API > @blocksuite/store > MemoryBlobManager
Class: MemoryBlobManager ​
Constructors ​
constructor ​
new MemoryBlobManager():
MemoryBlobManager
Returns ​
Properties ​
_blobsRef ​
private
readonly
_blobsRef:Map
<string
,number
>
Defined In ​
packages/store/src/adapter/assets.ts:8
_map ​
private
readonly
_map:Map
<string
,Blob
>
Defined In ​
packages/store/src/adapter/assets.ts:7
Methods ​
decreaseRef ​
decreaseRef(
blobId
):void
Parameters ​
Parameter | Type |
---|---|
blobId | string |
Returns ​
void
Defined In ​
packages/store/src/adapter/assets.ts:44
delete ​
delete(
key
):Promise
<void
>
Parameters ​
Parameter | Type |
---|---|
key | string |
Returns ​
Promise
< void
>
Defined In ​
packages/store/src/adapter/assets.ts:20
gc ​
gc():
Promise
<void
>
Returns ​
Promise
< void
>
Defined In ​
packages/store/src/adapter/assets.ts:28
get ​
get(
key
):Promise
<null
|Blob
>
Parameters ​
Parameter | Type |
---|---|
key | string |
Returns ​
Promise
< null
| Blob
>
Defined In ​
packages/store/src/adapter/assets.ts:10
increaseRef ​
increaseRef(
blobId
):void
Parameters ​
Parameter | Type |
---|---|
blobId | string |
Returns ​
void
Defined In ​
packages/store/src/adapter/assets.ts:39
list ​
list():
Promise
<string
[] >
Returns ​
Promise
< string
[] >
Defined In ​
packages/store/src/adapter/assets.ts:24
set ​
set(
value
,key
?):Promise
<string
>
Parameters ​
Parameter | Type |
---|---|
value | Blob |
key ? | string |
Returns ​
Promise
< string
>
Defined In ​
packages/store/src/adapter/assets.ts:14