Skip to main content
Version: Next

WebStorage

Home > @backstage/core-app-api > WebStorage

An implementation of the storage API, that uses the browser's local storage.

Signature:

class WebStorage implements StorageApi 

Implements: StorageApi

Constructors

Constructor

Modifiers

Description

(constructor)(namespace, errorApi)

Constructs a new instance of the WebStorage class

Methods

Method

Modifiers

Description

create(options)

static

forBucket(name)

get(key)

observe$(key)

remove(key)

set(key, data)

snapshot(key)