abstract class vaseClient::Storage

sys::Obj
  vaseClient::Storage

@Js
@NoPeer

Storage models a DOM Storage.

See pod doc for details.

clear

abstract Void clear()

Remove all items from storage. If store was empty, this method does nothing.

cur

static Storage cur()

get

@Operator
abstract Obj? get(Str key, Bool text := true)

Return Obj stored under this key, or null if key does not exist.

key

abstract Str? key(Int index)

Return the key value for this index. If the index is greater than or equal to size returns null.

remove

abstract Void remove(Str key)

Remove value for this key. If no value for this key exists, this method does nothing.

set

@Operator
abstract Void set(Str key, Obj val)

Store value under this key.

size

abstract Int size()

Return the number of items in storage.