Skip to content

Commit f14fb58

Browse files
authored
Fix README (#29)
1 parent fa1ee1e commit f14fb58

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ cli.call('MGET', '{key}1', '{key}2', '{key}3')
106106
```
107107

108108
## ACL
109-
The cluster client internally calls `COMMAND` and `CLUSTER NODES` commands to operate correctly.
109+
The cluster client internally calls [COMMAND](https://redis.io/commands/command/) and [CLUSTER NODES](https://redis.io/commands/cluster-nodes/) commands to operate correctly.
110110
So please permit it like the followings.
111111

112112
```ruby
@@ -136,7 +136,13 @@ RedisClient.cluster(username: 'foo', password: 'mysecret').new_client
136136
```
137137

138138
## Connection pooling
139-
TODO
139+
You can use the internal connection pooling feature implemented by [redis-client](https://github.com/redis-rb/redis-client#usage) if needed.
140+
141+
```ruby
142+
# example of docker on localhost
143+
RedisClient.cluster.new_pool(timeout: 1.0, size: 2)
144+
#=> #<RedisClient::Cluster 172.21.0.3:6379, 172.21.0.6:6379, 172.21.0.7:6379>
145+
```
140146

141147
## Connection drivers
142148
TODO

0 commit comments

Comments
 (0)