public interface Storage
Browser.localStorage() and
Browser.sessionStorage() methods.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the entire storage in the browser, removing all elements from it.
|
String |
getItem(String key)
Returns the value of the named item from the storage, or
null if it does not exist. |
void |
removeItem(String key)
Remove a single item from the storage.
|
void |
setItem(String key,
String value)
Sets the value of an item.
|
void clear()
void removeItem(String key)
key - the name of the item we want to removevoid setItem(String key, String value)
key - the name of the itemvalue - the new value of the itemCreated by Kornél Simon, 2022