forked from TykTechnologies/tyk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change redis client logic and deprecate hosts with addrs in redis conf (
TykTechnologies#2765) This PR deprecates `hosts` field in redis configuration. Instead `addrs` is defined. Example: ``` "addrs": [ "localhost:30001", "localhost:30002", "localhost:30003" ], ``` Also, this PR changes the redis client definition logic. The old version was defining cluster client if given address number is more than one. Otherwise, it was defining a simple redis client. With this PR, if `enable_cluster` is `true`, the client will be automatically defined as cluster client no matter number of given addresses in config. Fixes TykTechnologies#2742
- Loading branch information
1 parent
ead67c6
commit 8e75109
Showing
3 changed files
with
99 additions
and
16 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