code: public <K, V> ConnectionFuture<StatefulRedisConnection<K, V>> connectAsync(RedisCodec<K, V> codec, RedisURI redisURI) {
  
          assertNotNull(redisURI);
  
          return transformAsyncConnectionException(connectStandaloneAsync(codec, redisURI, redisURI.getTimeout()));
      }
docs: Open asynchronously a new connection to a Redis server using the supplied {@link RedisURI} and the supplied
  {@link RedisCodec codec} to encode/decode keys.
  
  @param codec Use this codec to encode/decode keys and values, must not be {@literal null}
  @param redisURI the Redis server to connect to, must not be {@literal null}
  @param <K> Key type
  @param <V> Value type
  @return {@link ConnectionFuture} to indicate success or failure to connect.
  @since 5.0