code: public static RedisCommandTimeoutException createTimeoutException(String message, Duration timeout) {
          return new RedisCommandTimeoutException(
                  String.format("%s. Command timed out after %s", message, formatTimeout(timeout)));
      }
docs: Create a {@link RedisCommandTimeoutException} with a detail message given the message and timeout.
  
  @param message the detail message.
  @param timeout the timeout value.
  @return the {@link RedisCommandTimeoutException}.