Skip to content

Commit

Permalink
Merge pull request #398 from rpkamp/patch-2
Browse files Browse the repository at this point in the history
Clarify documentation on Redis Sentinel
  • Loading branch information
Seldaek authored Mar 29, 2018
2 parents 3c846dd + 22c7430 commit a30af43
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Resources/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ snc_redis:
type: predis
alias: default
dsn:
- redis://localhost
- redis://otherhost
- redis://localhost:26379
- redis://otherhost:26379
options:
replication: sentinel
service: mymaster
Expand All @@ -142,7 +142,10 @@ snc_redis:
The `service` is the name of the set of Redis instances.
The optional parameters option can be used to set parameters like the
database number and password for the master/slave connections,
they don't apply for the connection to sentinal.
they don't apply for the connection to sentinel.
If you use a password, it must be in the password parameter and must
be omitted from the DSNs. Also make sure to use the sentinel port number
(26379 by default) in the DSNs, and not the default Redis port.
You can find more information about this on [Configuring Sentinel](https://redis.io/topics/sentinel#configuring-sentinel).

### Sessions ###
Expand Down

0 comments on commit a30af43

Please sign in to comment.