Class: MemoryAttachmentStorage
attachment.MemoryAttachmentStorage
Implements
Constructors
constructor
• new MemoryAttachmentStorage()
Properties
_storage
• Private
_storage: Map
<string
,
Attachment
>
Defined in
Methods
delete
▸ delete(vault
, id
): Promise
<void
>
Parameters
Name | Type |
---|---|
vault |
string |
id |
string |
Returns
Promise
<void
>
Implementation of
Defined in
deleteAll
▸ deleteAll(vault
): Promise
<void
>
Parameters
Name | Type |
---|---|
vault |
string |
Returns
Promise
<void
>
Implementation of
Defined in
get
▸ get(vault
, id
): Promise
<Attachment
>
Parameters
Name | Type |
---|---|
vault |
string |
id |
string |
Returns
Promise
<Attachment
>
Implementation of
Defined in
getUsage
▸ getUsage(vault
): Promise
<number
>
Parameters
Name | Type |
---|---|
vault |
string |
Returns
Promise
<number
>
Implementation of
Defined in
put
▸ put(a
): Promise
<void
>
Parameters
Name | Type |
---|---|
a |
Attachment |
Returns
Promise
<void
>