/**
* 集群版
*/
@Test
public void JedisJiuQun()
{
HashSet<HostAndPort> nodes=new HashSet<>();
nodes.add(new HostAndPort("192.168.1.191",7001));
nodes.add(new HostAndPort("192.168.1.191",7002));
nodes.add(new HostAndPort("192.168.1.191",7003));
nodes.add(new HostAndPort("192.168.1.191",7004));
nodes.add(new HostAndPort("192.168.1.191",7005));
nodes.add(new HostAndPort("192.168.1.191",7006));
JedisCluster clu=new JedisCluster(nodes);
clu.set("chb1","fffff");
String s=clu.get("chb1");
System.out.println(s);
clu.close();
}