def configure_inactivity_check(trigger_secs, response_timeout)
      raise ArgumentError('trigger_secs must be > 0') unless trigger_secs.to_i > 0
      raise ArgumentError('response_timeout must be > 0') unless response_timeout.to_i > 0

      @inactivity_trigger_secs = trigger_secs.to_i
      @inactivity_response_timeout = response_timeout.to_i

      # Start the inactivity check now only if we're already conected, otherwise
      # the connected event will schedule it.
      schedule_inactivity_checks if @connected
    end
def configure_inactivity_check(trigger_secs, response_timeout)
      raise ArgumentError('trigger_secs must be > 0') unless trigger_secs.to_i > 0
      raise ArgumentError('response_timeout must be > 0') unless response_timeout.to_i > 0

      @inactivity_trigger_secs = trigger_secs.to_i
      @inactivity_response_timeout = response_timeout.to_i

      # Start the inactivity check now only if we're already conected, otherwise
      # the connected event will schedule it.
      schedule_inactivity_checks if @connected
    end
Starts an inactivity checker which will ping redis if nothing has been
 heard on the connection for `trigger_secs` seconds and forces a reconnect
 after a further `response_timeout` seconds if we still don't hear anything.