Skip to main content Link Search Menu Expand Document (external link)

BrowserKeyValueStore overview

Added in v1.0.0


Table of contents


models

layerLocalStorage

Creates a KeyValueStore layer that uses the browser’s localStorage api. Values are stored between sessions.

Signature

export declare const layerLocalStorage: Layer.Layer<KeyValueStore.KeyValueStore>

Added in v1.0.0

layerSessionStorage

Creates a KeyValueStore layer that uses the browser’s sessionStorage api. Values are stored only for the current session.

Signature

export declare const layerSessionStorage: Layer.Layer<KeyValueStore.KeyValueStore>

Added in v1.0.0