Type Alias RedisCircuitBreakerAdapterSettings

RedisCircuitBreakerAdapterSettings: {
    backoff?: BackoffSettingsEnum;
    database: Redis;
    policy?: CircuitBreakerPolicySettingsEnum;
}

IMPORT_PATH: "@daiso-tech/core/circuit-breaker/redis-circuit-breaker-adapter"

Type declaration

  • Optionalbackoff?: BackoffSettingsEnum

    You can choose between different types of predefined backoff policies.

    { type: BACKOFFS.EXPONENTIAL }
    
  • database: Redis
  • Optionalpolicy?: CircuitBreakerPolicySettingsEnum

    You can choose between different types of predefined circuit breaker policies.

    { type: POLICIES.CONSECUTIVE }