interface RecordManagerInterface {
    createSchema(): Promise<void>;
    deleteKeys(keys: string[]): Promise<void>;
    exists(keys: string[]): Promise<boolean[]>;
    getTime(): Promise<number>;
    listKeys(options: ListKeyOptions): Promise<string[]>;
    update(keys: string[], updateOptions: UpdateOptions): Promise<void>;
}

Implemented by

Methods

  • Checks if keys exist in the record manager.

    Parameters

    • keys: string[]

      List of keys to check

    Returns Promise<boolean[]>

    List of booleans indicating if key exists in same order as provided keys

  • Updates keys in the record manager.

    Parameters

    • keys: string[]

      List of keys to update

    • updateOptions: UpdateOptions

    Returns Promise<void>

    Promise

    Error if timeAtLeast is provided and current time is less than timeAtLeast

    Error if number of keys does not match number of groupIds