WebStorageKt

public final class WebStorageKt
public final class WebStorageKt

Properties

Link copied to clipboard
private final static Integer length
private final static Integer length

The number of key/value pairs in the storage.

Functions

Link copied to clipboard
public final static String get(WebStorage $self, String key)
public final static String get(WebStorage $self, String key)

Returns the value associated with the given key if it exists in the storage.

Link copied to clipboard
public final Integer getLength()
public final Integer getLength()
Link copied to clipboard
public final static Unit set(WebStorage $self, String key, String value)
public final static Unit set(WebStorage $self, String key, String value)

Adds the item with the specified key and value to the storage, or updates it if the item with the given key already exists.