Namespace for storages
Classes
- LocalStorage
The LocalStorage class encapsulates the access to data objects.
- SessionStorage
The LocalStorage class encapsulates the access to data objects.
Members
defaults
PropertiesName | Type | Description |
---|---|---|
key | string | LocalStorage Key |
(static) instanceSymbol
This method is called by the
instanceof
operator.This method is called by the instanceof
operator.
- Since
- 2.1.0
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