Skip to content
Effect Days 2026 Get your ticket

BrowserKeyValueStore

2 exports Added in v1.0.0 Source

Models

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

Signature

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

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

Signature

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