Interface: Storage¶
A simple key/value storage.
Methods¶
get¶
▸ get(key
): Promise
<unknown
>
Gets a value from storage.
Parameters¶
Name | Type |
---|---|
key |
string |
Returns¶
Promise
<unknown
>
Defined in¶
remove¶
▸ remove(key
): Promise
<void
>
Removes a key from storage.
Parameters¶
Name | Type |
---|---|
key |
string |
Returns¶
Promise
<void
>
Defined in¶
set¶
▸ set(key
, value
): Promise
<void
>
Adds a value to storage.
Parameters¶
Name | Type |
---|---|
key |
string |
value |
unknown |
Returns¶
Promise
<void
>