code: public void setDefaultTimeout(long timeout, TimeUnit unit) {
          this.timeout = timeout;
          this.unit    = unit;
          bootstrap.setOption("connectTimeoutMillis", unit.toMillis(timeout));
      }
docs: Set the default timeout for {@link RedisConnection connections} created by
  this client. The timeout applies to connection attempts and non-blocking
  commands.
  
  @param timeout   Default connection timeout.
  @param unit      Unit of time for the timeout.