Manages storage operations using a configurable storage adapter.

Methods

  • Retrieves an item from the storage.

    Parameters

    • name: string

      The name of the item.

    Returns Promise<null | string>

    A promise that resolves with the value of the item or null if not found.

  • Node Config Management

    Node configs are stored as JSON under NODE_CONFIG_PREFIX + nodeId. All three methods below encapsulate that layout so no other file needs to know how a node config is serialized.

    Parameters

    • nodeId: string

    Returns Promise<null | NodeConfigAPI>