new KeyValueStore()
Methods
-
<abstract> 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, abstract> initialize()
-
Initialize the store
-
<abstract> 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