Interface Store<V>

Store is a key-value store interface

Interface

Store

Type Parameters

  • V

Hierarchy

  • Store

Implemented by

Methods

  • Clear the store.

    Returns

    {Promise}

    Memberof

    Store

    Returns Promise<void>

  • Clear all prepare operation cache.

    Memberof

    Store

    Returns void

  • Use the commit() method to actually submit all prepare changes.

    Returns

    {Promise}

    Memberof

    Store

    Returns Promise<void>

  • Get nodes for a key. Error is thrown when a key that does not exist is being accessed.

    Returns

    {Promise<Field[]>}

    Memberof

    Store

    Parameters

    • key: Field

    Returns Promise<Field[]>

  • Get the tree root. Error is thrown when the root does not exist.

    Returns

    {Promise}

    Memberof

    Store

    Returns Promise<Field>

  • Get the value for a key. Error is thrown when a key that does not exist is being accessed.

    Returns

    {Promise}

    Memberof

    Store

    Parameters

    • key: Field

    Returns Promise<V>

  • Get values map, key is Field.toString().

    Returns

    {Promise<Map<string, V>>}

    Memberof

    Store

    Returns Promise<Map<string, V>>

  • Prepare delete nodes for a key. Use the commit() method to actually submit changes.

    Memberof

    Store

    Parameters

    • key: Field

    Returns void

  • Prepare delete the value for a key. Use the commit() method to actually submit changes.

    Memberof

    Store

    Parameters

    • path: Field

    Returns void

  • Prepare put nodes for a key. Use the commit() method to actually submit changes.

    Memberof

    Store

    Parameters

    • key: Field
    • value: Field[]

    Returns void

  • Prepare put the value for a key. Use the commit() method to actually submit changes.

    Memberof

    Store

    Parameters

    • path: Field
    • value: V

    Returns void

  • Prepare update the root. Use the commit() method to actually submit changes.

    Memberof

    Store

    Parameters

    • root: Field

    Returns void

Generated using TypeDoc