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

  • Creates schema in the record manager.

    Returns Promise<void>

    Promise

  • Deletes keys from the record manager.

    Parameters

    • keys: string[]

      List of keys to delete

    Returns Promise<void>

  • 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

  • Returns current time from the record manager.

    Returns Promise<number>

    Current time

  • Lists keys from the record manager.

    Parameters

    Returns Promise<string[]>

    List of 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