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 connect to the redis sharded cluster? #82

Open
savyad opened this issue Jan 26, 2023 · 2 comments
Open

How to connect to the redis sharded cluster? #82

savyad opened this issue Jan 26, 2023 · 2 comments

Comments

@savyad
Copy link

savyad commented Jan 26, 2023

how can we connect to a redis cluster.
Like ioredis does provide way to connect to the redis cluster.

@mcollina
Copy link
Owner

this accepts the same options of ioredis

@savyad
Copy link
Author

savyad commented Jan 27, 2023

in ioredis to connect to the cluster you need to create a separate instance of the cluster like this.
const cluster = new Redis.Cluster([
{
port: 6380,
host: "127.0.0.1",
},
{
port: 6381,
host: "127.0.0.1",
},
]);

dcompton-eg added a commit to dcompton-eg/mqemitter-redis that referenced this issue Apr 18, 2024
* enable configuration of redis cluster

* allow pre-configured client
dcompton-eg added a commit to dcompton-eg/mqemitter-redis that referenced this issue Apr 18, 2024
* enable configuration of redis cluster

* allow pre-configured client
dcompton-eg added a commit to dcompton-eg/mqemitter-redis that referenced this issue Apr 22, 2024
dcompton-eg added a commit to dcompton-eg/mqemitter-redis that referenced this issue Apr 22, 2024
* enable configuration of redis cluster

* allow pre-configured client
dcompton-eg added a commit to dcompton-eg/mqemitter-redis that referenced this issue Apr 22, 2024
* enable configuration of redis cluster

* allow pre-configured client
dcompton-eg added a commit to dcompton-eg/mqemitter-redis that referenced this issue Apr 25, 2024
mcollina pushed a commit that referenced this issue Apr 29, 2024
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