Class: Db

Db()

new Db()

Chrome storage abstraction class
Source:

Members

(static) getAll

get all (key/value)s from storage
Source:

Methods

(static) get(…params) → {Promise}

Get a value from storage
Parameters:
Name Type Attributes Description
params * <repeatable>
Source:
Returns:
Type
Promise

(static) remove(keyStr) → {Promise}

Removes a value from storage
Parameters:
Name Type Description
keyStr Array.<string> | string Array of or single key
Source:
Returns:
Type
Promise

(static) set(params) → {Promise}

Set a value in storage
Parameters:
Name Type Description
params object key/value pair to be saved
Source:
Returns:
Type
Promise