Try Install Learn Blog API Packages GitHub
Pages

Storage.Session

Functions for the sessionStorage API.

Functions

clear
:
Result(Storage.Error, Void)

Clears the session storage.

get
(
key
:
String
)
:
Result(Storage.Error, String)

Gets the value of given key.

keys
:
Result(Storage.Error, Array(String))

Returns the keys in the session storage.

remove
(
key
:
String
)
:
Result(Storage.Error, Void)

Removes the value with the given key.

set
(
key
:
String
value
:
String
)
:
Result(Storage.Error, Void)

Sets the given key to the given value.

size
:
Result(Storage.Error, Number)

Returns the number of items in the session storage.