Monster.Data.Datasource. DomStorage

The DomStorage is a class that stores data in memory.

Constructor

new DomStorage(optionsopt)

Parameters:
NameTypeAttributesDescription
optionsObject<optional>

options contains definitions for the datasource.

License
  • AGPLv3

Members

defaults

Properties
NameTypeDescription
defaultsObject
Properties
NameTypeDescription
readObject
Properties
NameTypeDescription
selectorstring
writeObject
Properties
NameTypeDescription
selectorstring

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Methods

read() → {Promise}

Throws:
  • The read selector is not defined

    Type
    Error
  • There are no storage element

    Type
    Error
Returns:
Type: 
Promise

write() → {Promise}

Throws:
  • The write selector is not defined

    Type
    Error
  • There are no storage element

    Type
    Error
Returns:
Type: 
Promise