Class: StorageNamespace
Hierarchy
NamespaceBase
↳
StorageNamespace
Methods
getLocal
▸ getLocal<T
>(key
): Promise
<undefined
| T
>
Type parameters
Name | Type |
---|---|
T | unknown |
Parameters
Name | Type |
---|---|
key | undefined | string |
Returns
Promise
<undefined
| T
>
getSession
▸ getSession<T
>(key
): Promise
<undefined
| T
>
Type parameters
Name | Type |
---|---|
T | unknown |
Parameters
Name | Type |
---|---|
key | undefined | string |
Returns
Promise
<undefined
| T
>
getSynced
▸ getSynced<T
>(key
): Promise
<undefined
| T
>
Type parameters
Name | Type |
---|---|
T | unknown |
Parameters
Name | Type |
---|---|
key | undefined | string |
Returns
Promise
<undefined
| T
>
setLocal
▸ setLocal(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>
setSession
▸ setSession(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>
setSynced
▸ setSynced(key
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
value | any |
Returns
Promise
<void
>