Class: Storage

Storage()

new Storage()

Methods

clear() → {void}

Returns:
Type
void

count() → {number}

Returns:
number of items
Type
number

decrease(id) → {void}

Parameters:
Name Type Description
id string item identifier
Returns:
Type
void

getItem(id) → {object}

Parameters:
Name Type Description
id string item identifier
Returns:
item
Type
object

getItems() → {object}

Returns:
items
Type
object

getKeys() → {Array.<string>}

Returns:
keys of all items
Type
Array.<string>

increase(id) → {void}

Parameters:
Name Type Description
id string item identifier
Returns:
Type
void

removeItem(id) → {void}

Parameters:
Name Type Description
id string item identifier
Returns:
Type
void

setItem(id, item) → {void}

Parameters:
Name Type Description
id string item identifier
item object item to be saved
Returns:
Type
void

setItems(items) → {void}

Parameters:
Name Type Description
items object items to be saved
Returns:
Type
void