Constructor
(abstract) new LocalStorageWriter(key)
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | a value from the list localStorageKeys |
Methods
_delete() → {number}
Returns:
returns 0 if key was not found, returns 1 if key was deleted
- Type
- number
_get() → {Array.<(boolean|string)>}
Returns:
[success, value], success true if value was in storage and read, value is the read string
- Type
- Array.<(boolean|string)>
_set(value)
write a value with to the local storage of the browser with the class specific key (this.key)
Parameters:
| Name | Type | Description |
|---|---|---|
value |
string | string to write to the local storage of the browser |