Try Install Learn Blog API Packages GitHub
Pages
core

Search
Entities

Storage.Session

Functions

clear
:
Result(Storage.Error, Void)

Clears the session storage.

Storage.Session.clear()
delete
(
key
:
String
)
:
Result(Storage.Error, Void)

Delete the value with the given key.

Storage.Session.delete("key")
get
(
key
:
String
)
:
Result(Storage.Error, String)

Gets the value of given key.

Storage.Session.get("key")
keys
:
Result(Storage.Error, Array(String))

Returns the keys in the session storage.

Storage.Session.keys() == []
set
(
key
:
String
value
:
String
)
:
Result(Storage.Error, Void)

Sets the given key to the given value.

Storage.Session.set("key", "value")
size
:
Result(Storage.Error, Number)

Returns the number of items in the session storage.

Storage.Session.size() == 0