Storage

Monster.Data.Datasource. Storage

Namespace for storages

Author:
  • schukai GmbH

Classes

LocalStorage

The LocalStorage class encapsulates the access to data objects.

SessionStorage

The LocalStorage class encapsulates the access to data objects.

Members

# defaults

Properties
Name Type Description
key string

LocalStorage Key

Methods

# getClone() → {Storage}

Returns:
Type
Storage

# read() → {Promise}

Throws:
  • the options does not contain a valid json definition

    Type
    Error
  • value is not a object

    Type
    TypeError
  • the data cannot be read

    Type
    Error
Returns:
Type
Promise

# write() → {Storage}

Throws:

the data cannot be written

Type
Error
Returns:
Type
Storage