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

How to handle read & write operations in different endpoint using Redis Client #2470

Open
Premkumar142 opened this issue Apr 11, 2023 · 1 comment
Labels

Comments

@Premkumar142
Copy link

Premkumar142 commented Apr 11, 2023

Description

Can we configure two different host for read and write operations in latest redis client version 4.6.5.
I tried to configure the endpoints for read and write operations for better usages of the read and write endpoints.
Is there any way to configure them when creating a new Redis Client?
redis.createClient()

@leibale
Copy link
Collaborator

leibale commented Apr 11, 2023

Currently there is no built-in way to do it, but you can create two clients and use the "correct" one for read/write.
Adding this to the backlog of sentinel (#302), but it'll take some time...

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

No branches or pull requests

2 participants