code: public <K, V> StatefulRedisConnection<K, V> connect(RedisCodec<K, V> codec, RedisURI redisURI) {
  
          assertNotNull(redisURI);
  
          return getConnection(connectStandaloneAsync(codec, redisURI, redisURI.getTimeout()));
      }
docs: Open 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 A new connection