new KeyValueStore()
Methods
-
getValue(name)
-
Get the value associated with
name
.Parameters:
Name Type Description name
string Name of the key Returns:
Promise for the value corresponding to the key. If the value does not exist in the store, returns null without rejecting the promise- Type
- Promise
-
<async> initialize()
-
Initialize the store
-
setValue(name, value)
-
Set the value associated with
name
.Parameters:
Name Type Description name
string Name of the key to save value
string The Value to save Returns:
Promise for the 'value' object upon successful write operation- Type
- Promise