class Redis::Client

def establish_connection

def establish_connection
  @connection = @options[:driver].connect(@options.dup)
rescue TimeoutError
  raise CannotConnectError, "Timed out connecting to Redis on #{location}"
rescue Errno::ECONNREFUSED
  raise CannotConnectError, "Error connecting to Redis on #{location} (ECONNREFUSED)"
end