Local storage add-on.
- Source:
- See:
Summary
Methods
- cleanup(prefixnullable)
- debug(prefixnullable)
- get(key, prefixnullable) → {string}
- init(prefix)
- set(key, value, prefixnullable)
Detailed Description
Methods
cleanup(prefixnullable)
Perform local storage cleanup.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
prefix |
string |
<nullable> |
Storage prefix. |
- Source:
debug(prefixnullable)
Print the local storage.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
prefix |
string |
<nullable> |
Storage prefix. |
- Source:
get(key, prefixnullable) → {string}
Get the value from the local storage.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | Key | |
prefix |
string |
<nullable> |
Storage prefix. |
Returns:
Value
- Type
- string
- Source:
init(prefix)
Initialize the application storage.
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string | Storage prefix |
- Source:
set(key, value, prefixnullable)
Save the value in the local storage.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | Key | |
value |
string | Value | |
prefix |
string |
<nullable> |
Storage prefix. |
- Source: