Skip to content

Commit b72d36f

Browse files
authored
Merge pull request #1323 from AmritD/patch-1
Fix punctuation and grammatical errors in Sentinel support section of…
2 parents a8f0dbd + e62d267 commit b72d36f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ MyApp.redis.incr("some-counter")
9494
## Sentinel support
9595

9696
The client is able to perform automatic failover by using [Redis
97-
Sentinel](http://redis.io/topics/sentinel). Make sure to run Redis 2.8+
97+
Sentinel](http://redis.io/topics/sentinel). Make sure to run Redis 2.8+
9898
if you want to use this feature.
9999

100100
To connect using Sentinel, use:
@@ -114,13 +114,13 @@ and `slave`. When the role is `slave`, the client will try to connect to a
114114
random slave of the specified master. If a role is not specified, the client
115115
will connect to the master.
116116

117-
* When using the Sentinel support you need to specify a list of sentinels to
117+
* When using Sentinel support, you need to specify a list of sentinels to
118118
connect to. The list does not need to enumerate all your Sentinel instances,
119119
but a few so that if one is down the client will try the next one. The client
120120
is able to remember the last Sentinel that was able to reply correctly and will
121-
use it for the next requests.
121+
use it for the next request.
122122

123-
To [authenticate](https://redis.io/docs/management/sentinel/#configuring-sentinel-instances-with-authentication) Sentinel itself, you can specify the `sentinel_username` and `sentinel_password`. Exclude the `sentinel_username` option if you're using password-only authentication.
123+
To [authenticate](https://redis.io/docs/management/sentinel/#configuring-sentinel-instances-with-authentication) with Sentinel itself, you can specify the `sentinel_username` and `sentinel_password`. Exclude the `sentinel_username` option if you're using password-only authentication.
124124

125125
```ruby
126126
SENTINELS = [{ host: '127.0.0.1', port: 26380},
@@ -129,7 +129,7 @@ SENTINELS = [{ host: '127.0.0.1', port: 26380},
129129
redis = Redis.new(name: 'mymaster', sentinels: SENTINELS, sentinel_username: 'appuser', sentinel_password: 'mysecret', role: :master)
130130
```
131131

132-
If you specify a username and/or password at the top level for your main Redis instance, Sentinel *will not* using thouse credentials
132+
If you specify a username and/or password at the top level for your main Redis instance, Sentinel *will not* use those credentials.
133133

134134
```ruby
135135
# Use 'mysecret' to authenticate against the mymaster instance, but skip authentication for the sentinels:
@@ -139,7 +139,7 @@ SENTINELS = [{ host: '127.0.0.1', port: 26380 },
139139
redis = Redis.new(name: 'mymaster', sentinels: SENTINELS, role: :master, password: 'mysecret')
140140
```
141141

142-
So you have to provide Sentinel credential and Redis explicitly even they are the same
142+
So you have to provide Sentinel credentials and Redis explicitly even if they are the same.
143143

144144
```ruby
145145
# Use 'mysecret' to authenticate against the mymaster instance and sentinel
@@ -149,7 +149,7 @@ SENTINELS = [{ host: '127.0.0.1', port: 26380 },
149149
redis = Redis.new(name: 'mymaster', sentinels: SENTINELS, role: :master, password: 'mysecret', sentinel_password: 'mysecret')
150150
```
151151

152-
Also the `name`, `password`, `username` and `db` for Redis instance can be passed as an url:
152+
Also, the `name`, `password`, `username`, and `db` for the Redis instance can be passed as a URL:
153153

154154
```ruby
155155
redis = Redis.new(url: "redis://appuser:mysecret@mymaster/10", sentinels: SENTINELS, role: :master)

0 commit comments

Comments
 (0)