Namespace $_.store
Defined in: store.js.
Method Summary
set(string, mixed, bool)
Puts a value into localstorage at the specified key, and JSON-encodes the value if not a string
Method Detail
$_.store.get(string, bool)
: object
Retrieves and deserializes a value from localstorage,
based on the specified key
Parameters:
string | key | |
bool | session |
Returns:
object |
$_.store.set(string, mixed, bool)
Puts a value into localstorage at the specified key,
and JSON-encodes the value if not a string
Parameters:
string | key | |
mixed | value | |
bool | session |
$_.store.remove(string, bool)
Removes the specified item from storage
Parameters:
string | key | |
bool | session |