Class MemoryStore<V>

Store based on memory

Implements

Type Parameters

  • V

Hierarchy

  • MemoryStore

Implements

Constructors

Properties

nodesMap: Map<string, Field[]>
operationCache: {
    k: string;
    opType: OperationType;
    setType: SetType;
    v: any;
}[]
valuesMap: Map<string, V>

Methods

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

    Returns

    {Promise}

    Memberof

    MemoryStore

    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

    MemoryStore

    Parameters

    • key: Field

    Returns Promise<Field[]>

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

    Returns

    {Promise}

    Memberof

    MemoryStore

    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

    MemoryStore

    Parameters

    • path: Field

    Returns Promise<V>

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

    Memberof

    MemoryStore

    Parameters

    • key: Field
    • value: Field[]

    Returns void

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

    Memberof

    MemoryStore

    Parameters

    • path: Field
    • value: V

    Returns void

Generated using TypeDoc