Class: Redis::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/redis/reconnect_with_readonly.rb

Instance Method Summary collapse

Instance Method Details

#call_loop_with_reconnect_with_readonly(command, &block) ⇒ Object Also known as: call_loop



58
59
60
61
62
# File 'lib/redis/reconnect_with_readonly.rb', line 58

def call_loop_with_reconnect_with_readonly(command, &block)
  ReconnectWithReadonly.reconnect_with_readonly(self) do
    call_loop_without_reconnect_with_readonly(command, &block)
  end
end

#call_pipeline_with_reconnect_with_readonly(command, &block) ⇒ Object Also known as: call_pipeline



64
65
66
67
68
# File 'lib/redis/reconnect_with_readonly.rb', line 64

def call_pipeline_with_reconnect_with_readonly(command, &block)
  ReconnectWithReadonly.reconnect_with_readonly(self) do
    call_pipeline_without_reconnect_with_readonly(command, &block)
  end
end

#call_with_reconnect_with_readonly(command, &block) ⇒ Object Also known as: call



52
53
54
55
56
# File 'lib/redis/reconnect_with_readonly.rb', line 52

def call_with_reconnect_with_readonly(command, &block)
  ReconnectWithReadonly.reconnect_with_readonly(self) do
    call_without_reconnect_with_readonly(command, &block)
  end
end