Class

device/storage/Local

device/storage/Local()

Constructor

# new device/storage/Local()

To provide the html5 localstorage as storage.

Extends

Methods

# clear()

Remove everything from the storage.

# get(key) → (nullable) {String}

Return the item, identified by the key, from the storage. If the key does not exists in the storage, null will be returned.

Parameters:
Name Type Description
key String

keys

values

String

# set(key, value)

Add or update an item to the localStorage.

Parameters:
Name Type Description
key String
value String

# unset(key)

Remove the item, identified by the key, from the storage.

Parameters:
Name Type Description
key String