Skip to content

DenoKeyValueStore

Deno-backed KeyValueStore layers using Web Storage APIs.

2 exports Added in v4.0.0 Source

Layers

Creates a KeyValueStore layer backed by localStorage, with values stored between sessions.

Signature

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

Creates a KeyValueStore layer backed by sessionStorage, with values stored only for the current session.

Signature

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