Memento

interface Memento(source)

A memento represents a storage utility. It can store and retrieve values.

Online Documentation

Functions

Link copied to clipboard
abstract fun <T : JsAny?> get(key: String): T?
abstract fun <T : JsAny?> get(key: String, defaultValue: T): T

Return a value.

Link copied to clipboard
abstract fun keys(): ReadonlyArray<JsString>

Returns the stored keys.

Link copied to clipboard
abstract fun update(key: String, value: JsAny?): PromiseLike<Void?>

Store a value. The value must be JSON-stringifyable.