Class: Data

XOpatStorage.Data

Data Interface for persistent storage of data items. This Data class is by default used to save plugin data within HTTP POST. Apps should extend and use this class to store their data to desired endpoints.

Constructor

new Data()

Source:

Extends

Methods

(async) delete(key, key)

Parameters:
Name Type Description
key string
key
Inherited From:
Source:

(async) get(key, defaultValue) → {Promise.<(*|undefined)>}

Parameters:
Name Type Description
key any
defaultValue any returned only in case undefined would be returned
Inherited From:
Source:
Returns:
value to store, or undefined in the default value is missing
Type
Promise.<(*|undefined)>

(async) set(key, value)

Parameters:
Name Type Description
key string
value string
Inherited From:
Source:
Returns:
Promise