Class MemoryStore<V>

Store based on memory

MemoryStore

Implements

Type Parameters

  • V

Implements

Constructors

Properties

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

Type declaration

  • k: string
  • opType: OperationType
  • setType: SetType
  • v: any
valuesMap: Map<string, V>

Methods

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

    Parameters

    • key: Field

    Returns Promise<Field[]>

    {Promise<Field[]>}

    Memberof

    MemoryStore

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

    Parameters

    • path: Field

    Returns Promise<V>

    {Promise}

    Memberof

    MemoryStore