File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -53,15 +53,14 @@ RedisClient.cluster(nodes: %w[redis://node1:6379 redis://node2:6379]).new_client
53
53
``` ruby
54
54
# To connect with a subset of auth-needed nodes for startup
55
55
56
- # User name and password should be URI encoded and the same in every node.
56
+ # # with URL:
57
+ # ## User name and password should be URI encoded and the same in every node.
57
58
username = ' myuser'
58
59
password = URI .encode_www_form_component(' !&<123-abc>' )
59
-
60
- # with URL:
61
60
RedisClient .cluster(nodes: %W[redis://#{ username } :#{ password } @node1:6379 redis://#{ username } :#{ password } @node2:6379] ).new_client
62
61
63
- # with options:
64
- RedisClient .cluster(nodes: %w[redis://node1:6379 redis://node2:6379] , username: username , password: password ).new_client
62
+ # # with options:
63
+ RedisClient .cluster(nodes: %w[redis://node1:6379 redis://node2:6379] , username: ' myuser ' , password: ' !&<123-abc> ' ).new_client
65
64
```
66
65
67
66
``` ruby
You can’t perform that action at this time.
0 commit comments