Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/redis/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ def password
undef_method :call_once_v
undef_method :blocking_call

def ensure_connected(retryable: true, &block)
super(retryable: retryable, &block)
rescue ::RedisClient::Error => error
Client.translate_error!(error)
end

def call_v(command, &block)
super(command, &block)
rescue ::RedisClient::Error => error
Expand Down
Loading