Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] redis sentinel support #2256

Open
mblaschke opened this issue Oct 16, 2023 · 0 comments
Open

[FEATURE REQUEST] redis sentinel support #2256

mblaschke opened this issue Oct 16, 2023 · 0 comments
Assignees

Comments

@mblaschke
Copy link

Describe the solution you'd like
not sure how to use sentinel with go-redis in iris.

connect function seems only to support cluster and standalone redis:

// Connect initializes the redis client.
func (r *GoRedisDriver) Connect(c Config) error {
	if r.Client != nil { // if a custom one was given through SetClient.
		return nil
	}

	if len(c.Clusters) > 0 {
		r.Client = redis.NewClusterClient(r.mergeClusterOptions(c))
	} else {
		r.Client = redis.NewClient(r.mergeClientOptions(c))
	}

	return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants