def reconnect!(new_uri = nil)
      @connection.close_connection
      configure(new_uri) if new_uri
      @auto_reconnect = true
      EM.next_tick { reconnect_connection }
    end
def reconnect!(new_uri = nil)
      @connection.close_connection
      configure(new_uri) if new_uri
      @auto_reconnect = true
      EM.next_tick { reconnect_connection }
    end
def reconnect! ( new_uri = nil ) @connection . close_connection configure ( new_uri ) if new_uri @auto_reconnect = true EM . next_tick { reconnect_connection } end
Disconnect then reconnect the redis connection.

 Pass optional uri - e.g. to connect to a different redis server.
 Any pending redis commands will be failed, but during the reconnection
 new commands will be queued and sent after connected.
Disconnect then reconnect the redis connection .