README.md in redis_cluster-0.2.7 vs README.md in redis_cluster-0.2.8
- old
+ new
@@ -26,18 +26,30 @@
## Usage
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
+# don't need all, gem can auto detect all nodes, and process failover if some master nodes down
+hosts = [{host: '127.0.0.1', port: 7000}, {host: '127.0.0.1', port: 7001}]
rs = RedisCluster.new hosts
rs.set "test", 1
rs.get "test"
```
now support keys command with scanning all nodes:
```ruby
rs.keys 'test*'
+```
+
+limited support commands: pipelined, multi
+```ruby
+# Only support pipeline commands to one redis node once
+# You must ensure keys at one slot: use same key or hash tags
+# If you don't, not raise any errors now
+rs.pipelined do
+ rs.set "{foo}one", 1
+ rs.set "{foo}two", 2
+end
```
## Benchmark test
A simple benchmark at my macbook, start 4 master nodes (and 4 cold slave nodes), running with one ruby process.