README.md in redis_cluster-0.2.5 vs README.md in redis_cluster-0.2.6
- old
+ new
@@ -1,9 +1,11 @@
# RedisCluster
![travis ci](https://travis-ci.org/zhchsf/redis_cluster.svg?branch=master)
+First see: [https://redis.io/topics/cluster-tutorial](https://redis.io/topics/cluster-tutorial)
+
RedisCluster for ruby is rewrited from [https://github.com/antirez/redis-rb-cluster](https://github.com/antirez/redis-rb-cluster)
Now is developing, only support single node methods, and not use in any production environments.
@@ -23,10 +25,10 @@
$ gem install redis_cluster
## Usage
-Doing!
+First you need to configure redis cluster with some nodes! Please see: [https://redis.io/topics/cluster-tutorial](https://redis.io/topics/cluster-tutorial)
```ruby
hosts = [{host: '127.0.0.1', port: 7000}, {host: '127.0.0.1', port: 7001}] # don't need all, gem can auto detect all nodes, and process failover if some master nodes down
rs = RedisCluster.new hosts
rs.set "test", 1