Class BaseDagEventStore<K, V, QueryExt>Abstract

An abstract EventStore storing events that form a DAG. One of entries or keys query functions must be overridden in subclass, as by default they refer to each other.

Type Parameters

Hierarchy

Implements

Constructors

Properties

currentEventDeps: [K, V][] = []

Cache of event parents during a put/validate operation.

data: AppendOnlyAutoKeyMap<K, V> & Partial<AutoKeyMapBatch<K, V>>
getEventMeta: ((event) => undefined | EventMeta<K>) = ...

Type declaration

    • (event): undefined | EventMeta<K>
    • Returns given event metadata.

      Parameters

      • event: V

      Returns undefined | EventMeta<K>

queryPageSize: number = DEFAULT_BATCH_SIZE
useCache: boolean = false

Set to true to use cache.

Methods

Generated using TypeDoc