@drupflare/spool - v0.1.0
    Preparing search index...

    Interface VersionStore

    Where the version vector lives. bump records a write and returns the new cursor; diff is every tag changed after a cursor. Implementations must keep the cursor monotonic across restarts, or workers holding a higher cursor are told to reset.

    interface VersionStore {
        bump(tags: readonly string[]): Promise<number>;
        cursor(): Promise<number>;
        diff(from: number): Promise<VectorDiff>;
    }
    Index
    • Parameters

      • tags: readonly string[]

      Returns Promise<number>