Skip to content

Interface: Storage

A simple key/value storage.

Methods

get

get(key): Promise<unknown>

Gets a value from storage.

Parameters

Name Type
key string

Returns

Promise<unknown>

Defined in

storage/storage.ts:13


remove

remove(key): Promise<void>

Removes a key from storage.

Parameters

Name Type
key string

Returns

Promise<void>

Defined in

storage/storage.ts:16


set

set(key, value): Promise<void>

Adds a value to storage.

Parameters

Name Type
key string
value unknown

Returns

Promise<void>

Defined in

storage/storage.ts:10