/** * Open a new synchronous connection to the redis server. Use the supplied * {@link RedisCodec codec} to encode/decode keys and values. * * @param codec Use this codec to encode/decode keys and values. * * @return A new connection. */ public <K, V> RedisConnection<K, V> connect(RedisCodec<K, V> codec) { return new RedisConnection<K, V>(connectAsync(codec)); }
/** * Open a new asynchronous connection to the redis server that treats * keys and values as UTF-8 strings. * * @return A new connection. */ public RedisAsyncConnection<String, String> connectAsync() { return connectAsync(new Utf8StringCodec()); }
/** * Open a new asynchronous connection to the redis server that treats * keys and values as UTF-8 strings. * * @return A new connection. */ public RedisAsyncConnection<String, String> connectAsync() { return connectAsync(new Utf8StringCodec()); }
/** * Open a new synchronous connection to the redis server. Use the supplied * {@link RedisCodec codec} to encode/decode keys and values. * * @param codec Use this codec to encode/decode keys and values. * * @return A new connection. */ public <K, V> RedisConnection<K, V> connect(RedisCodec<K, V> codec) { return new RedisConnection<K, V>(connectAsync(codec)); }