-
<static> clear()
-
The clear() method of the Storage interface, when invoked, clears all stored keys.
- Source:
-
-
<static> getItem(key)
-
The getItem() method of the Storage interface, when passed a key name, will return that key's
value or null if the key does not exist.
Parameters:
Name |
Type |
Description |
key |
String
|
The name of the key you want to retrieve the value of. |
- Source:
-
Returns:
-
Type
-
*
-
<static> removeItem(key)
-
The removeItem() method of the Storage interface, when passed a key name, will remove that key
from the storage if it exists. If there is no item associated with the given key, this method
will do nothing.
Parameters:
Name |
Type |
Description |
key |
String
|
The name of the key you want to remove. |
- Source:
-
-
<static> setItem(key, value)
-
The setItem() method of the Storage interface, when passed a key name and value, will add
that key to the storage, or update that key's value if it already exists.
Parameters:
Name |
Type |
Description |
key |
*
|
The name of the key you want to create/update. |
value |
*
|
The value you want to give the key you are creating/updating. |
- Source:
-