-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from flownative/fix-sentinel-passwords
Fix support for Sentinels with passwords
- Loading branch information
Showing
3 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,30 +84,10 @@ Flow_Mvc_Routing_Resolve: | |
Note that "service" is the name of your Redis cluster (which is "mymaster" in | ||
most default configurations). | ||
|
||
If your Sentinels are protected with a password, you must specify the | ||
password via the Sentinel URLs (due to how Predis works internally). Note | ||
that no username is specified, but you must not forget the colon ":" before | ||
the password: | ||
This package will use the same password for all connections, there is | ||
currently no support for specifying different passwords for Sentinel and | ||
client servers. | ||
|
||
```yaml | ||
Flow_Mvc_Routing_Route: | ||
backend: 'Flownative\RedisSentinel\RedisBackend' | ||
backendOptions: &backendOptions | ||
sentinels: | ||
- 'redis://:[email protected]:26379' | ||
- 'redis://:[email protected]:26379' | ||
- 'redis://:[email protected]:26379' | ||
service: 'mymaster' | ||
password: 'a-very-long-password' | ||
database: 0 | ||
timeout: 0.5 | ||
readWriteTimeout: 0.1 | ||
|
||
Flow_Mvc_Routing_Resolve: | ||
backend: 'Flownative\RedisSentinel\RedisBackend' | ||
backendOptions: *backendOptions | ||
… | ||
``` | ||
## Logging | ||
|
||
This cache backend will log errors, such as connection timeouts or other | ||
|