flexygo.culture.eses.flexygo.storage.local Class
Library to call local storage functions.
Methods
add
(
-
key
-
value
Method to add an element to local Storage.
Parameters:
-
key
String- Element key.
-
value
String- element value.
clear
()
Method to clear all elements from Session Storage.
get
(
Object
-
key
-
value
Method to get an element from Session Storage.
Parameters:
-
key
String- Element key.
-
value
String- element value.
Returns:
Object:
- Object from local storage.
load
()
Method to load local Storage from DataBase.
remove
(
-
key
-
value
Method to remove an element from Session Storage.
Parameters:
-
key
String- Element key.
-
value
String- element value.
save
(
Boolean
-
key
-
value
Method to save local Storage to DataBase.
Parameters:
-
key
String- The url of the service.
-
value
String- POST or GET.
Returns:
Boolean:
- If was saved correctly.