Storage facility bound to the plugin.
You are encouraged to use this facility instead of localStorage or the local IndexedDB to function properly across the multiple domains the SDK might be integrated from.
Methods
-
<static> get(keys)
-
Reads one or more keys from the plugin storage.
Parameters:
Name Type Argument Description keys
string <repeatable>
The keys to read
Returns:
- Resolves to a promise containing an object with the keys that were given in parameter as fields.
- Type
- Promise.<Object>
-
<static> set(key [, value])
-
Sets one or more keys into the plugin storage.
Parameters:
Name Type Argument Description key
string | Object The key to set, or an object of keys and values to set.
value
* <optional>
The value to set, if the first parameter is a string. Unused if you gave it an object.
Returns:
- Type
- Promise