Options
All
  • Public
  • Public/Protected
  • All
Menu

An in-memory string key/value data connector.

Hierarchy

  • Connector

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private _storage

_storage: any

Methods

fetch

  • fetch(id: string): Promise<string>
  • Retrieve an item from the data connector.

    Parameters

    • id: string

    Returns Promise<string>

list

  • list(namespace?: string): Promise<{ ids: string[]; values: string[] }>
  • Retrieve the list of items available from the data connector.

    Parameters

    • Optional namespace: string

      If not empty, only keys whose first token before : exactly match namespace will be returned, e.g. foo in foo:bar.

    Returns Promise<{ ids: string[]; values: string[] }>

remove

  • remove(id: string): Promise<void>
  • Remove a value using the data connector.

    Parameters

    • id: string

    Returns Promise<void>

save

  • save(id: string, value: string): Promise<void>
  • Save a value using the data connector.

    Parameters

    • id: string
    • value: string

    Returns Promise<void>

Generated using TypeDoc