RedisTransactionConflictError

ClassExperimental

Signature

class RedisTransactionConflictError extends Error

redis/src/errors.ts:8

Thrown when a Redis transaction keeps conflicting with concurrent commits: every try found a record or dependency set it read changed by another transaction before it could commit. When the last try's callback threw after reading changed records, that error is the cause.

Constructor

Signature

new RedisTransactionConflictError(message, options): RedisTransactionConflictError;

redis/src/errors.ts:12

Experimental

Parameters

  • message
    string
  • options
    object
  • options.cause?
    unknown
  • options.tries
    number

Overrides

Error.constructor

Properties

  • tries
    number

    Experimental

    Number of tries the transaction ran before giving up.

Used in guides

esc

Search guides, integrations and every exported symbol.

↑ ↓ to navigate↵ to open