Data packet storage based on array.

This is a minimal implementation of DataStore interfaces. It has small code size but every operation has O(N) time complexity.

Implements

Constructors

Methods

  • Delete Data packets with given names.

    Parameters

    • Rest...names: readonly Name[]

    Returns Promise<void>

  • Retrieve Data by exact name.

    Parameters

    Returns Promise<undefined | Data>

  • Insert one or more Data packets.

    Parameters

    • Rest...args: (Data | AnyIterable<Data>)[] | [{}, ...(Data | AnyIterable<Data>)[]]

    Returns Promise<void>

    Arguments include:

    • an optional Options object
    • zero or more Data, Iterable, or AsyncIterable