Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

optimize storage redis configuration to support different mode #182

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Conversation

uddmorningsun
Copy link
Contributor

According to NewRedisClusterPool, different storage redis configuration will initialize different redis client:

  • master_name != "", redis client will be redis.NewFailoverClient
  • enable_cluster == true, redis client will be redis.NewClusterClient
  • others condition, redis client will be redis.NewClient

Signed-off-by: Chenyang Yan memory.yancy@gmail.com

P.S.: if it's significant, I will also update tyk-hybrid, tyk-pro similar Redis configuration and rebase commit 😃.

CC: @kulong0105

According to `NewRedisClusterPool`, different storage redis configuration will initialize different redis client:

* master_name != "", redis client will be `redis.NewFailoverClient`
* enable_cluster == true, redis client will be `redis.NewClusterClient`
* others condition, redis client will be `redis.NewClient`

Signed-off-by: Chenyang Yan <memory.yancy@gmail.com>
@gothka gothka requested a review from a team January 19, 2022 10:13
Copy link
Contributor

@DeployInBinary DeployInBinary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @uddmorningsun LGTM!

@DeployInBinary DeployInBinary merged commit baf86ac into TykTechnologies:master Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants