IFClite TypeScript API
    Preparing search index...

    Interface CheckpointStore

    Durable checkpoint storage with compare-and-swap writes.

    interface CheckpointStore {
        read(id: string): Promise<StoredCheckpoint | null>;
        write(
            checkpoint: FlowCheckpoint,
            expected: number | null,
        ): Promise<boolean>;
    }

    Implemented by

    Index
    • Write when the stored revision still equals expected (null: must not exist yet); false on conflict.

      Parameters

      Returns Promise<boolean>