The StorageScope
class encapsulates different methods of storage for persistent objects.
This module exposes no properties.
Method | Description |
---|---|
get | get(key: string): Promise<object> Gets the value with the specified key. Returns a Promise which will be fulfilled with a JavaScript object or an error. |
remove | remove(key: string): Promise<boolean> Removes the key. Returns a Promise that resolves to nothing or an error. |
set | set(key: string, value: Object): Promise<boolean> Sets the value for the key. Returns a JS Promise or an error. |