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 : ERROR CLASS: Symbol not found for JsAny??> get(key: String): T?
abstract fun <T : ERROR CLASS: Symbol not found for JsAny??> get(key: String, defaultValue: T): T

Return a value.

Link copied to clipboard
abstract fun keys(): ReadonlyArray<ERROR CLASS: Symbol not found for JsString>

Returns the stored keys.

Link copied to clipboard
abstract fun update(key: String, value: ERROR CLASS: Symbol not found for JsAny??): PromiseLike<Void>

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