use of redis.clients.jedis.JedisShardInfo in project jedis by xetorthio.
the class JedisTest method connectWithShardInfo.
@Test
public void connectWithShardInfo() {
JedisShardInfo shardInfo = new JedisShardInfo("localhost", Protocol.DEFAULT_PORT);
shardInfo.setPassword("foobared");
Jedis jedis = new Jedis(shardInfo);
jedis.get("foo");
}
Aggregations