Update README.md
This commit is contained in:
@@ -76,7 +76,7 @@ Redis cluster [specification](http://redis.io/topics/cluster-spec) (still under
|
||||
Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();
|
||||
//Jedis Cluster will attempt to discover cluster nodes automatically
|
||||
jedisClusterNodes.add(new HostAndPort("127.0.0.1", 7379));
|
||||
JedisCluster jc = new JedisCluster(jedisClusterNode);
|
||||
JedisCluster jc = new JedisCluster(jedisClusterNodes);
|
||||
jc.set("foo", "bar");
|
||||
String value = jc.get("foo");
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user