Module: RedisClient::CircuitBreaker::Middleware

Defined in:
lib/redis_client/circuit_breaker.rb

Instance Method Summary collapse

Instance Method Details

#call(_command, config) ⇒ Object



10
11
12
# File 'lib/redis_client/circuit_breaker.rb', line 10

def call(_command, config)
  config.circuit_breaker.protect { super }
end

#call_pipelined(_commands, config) ⇒ Object



14
15
16
# File 'lib/redis_client/circuit_breaker.rb', line 14

def call_pipelined(_commands, config)
  config.circuit_breaker.protect { super }
end

#connect(config) ⇒ Object



6
7
8
# File 'lib/redis_client/circuit_breaker.rb', line 6

def connect(config)
  config.circuit_breaker.protect { super }
end