Methods clear clear( ) : Promise < undefined | number > Returns Promise < undefined | number > delete delete( key: string ) : Promise < boolean > Parameters Returns Promise < boolean > get get< T > ( key: string ) : Promise < undefined | T > Type parameters Parameters Returns Promise < undefined | T > get All get All< T > ( ) : Promise < Map < string , T > > Type parameters Returns Promise < Map < string , T > > keys keys( ) : Promise < string [] > Returns Promise < string [] > set set< T > ( key: string , value: T ) : Promise < boolean > Type parameters Parameters Returns Promise < boolean > update update< T > ( key: string , updator: ( state: undefined | T ) => T ) : Promise < T > update< T > ( key: string , updator: ( state: undefined | T ) => undefined | T ) : Promise < undefined | T > Type parameters Parameters key: string updator: ( state: undefined | T ) => T ( state: undefined | T ) : T Returns Promise < T > Type parameters Parameters key: string updator: ( state: undefined | T ) => undefined | T ( state: undefined | T ) : undefined | T Parameters Returns undefined | T Returns Promise < undefined | T > Legend Namespace Variable Function Function with type parameter Type alias Type alias with type parameter Interface Interface with type parameter Method Class Class with type parameter Settings Theme OS Light Dark
Fetch the value of a specific key. Return
undefined
if no value is stored.