Skip to main content

Class: StorageNamespace

Hierarchy

  • NamespaceBase

    StorageNamespace

Methods

getLocal

getLocal<T>(key): Promise<undefined | T>

Type parameters

NameType
Tunknown

Parameters

NameType
keyundefined | string

Returns

Promise<undefined | T>


getSession

getSession<T>(key): Promise<undefined | T>

Type parameters

NameType
Tunknown

Parameters

NameType
keyundefined | string

Returns

Promise<undefined | T>


getSynced

getSynced<T>(key): Promise<undefined | T>

Type parameters

NameType
Tunknown

Parameters

NameType
keyundefined | string

Returns

Promise<undefined | T>


setLocal

setLocal(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>


setSession

setSession(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>


setSynced

setSynced(key, value): Promise<void>

Parameters

NameType
keystring
valueany

Returns

Promise<void>