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

QUESTION: Is it possible to use SCAN and/or scanStream in Redis Cluster? #764

Closed
Pistacchione opened this issue Dec 13, 2018 · 5 comments
Closed

Comments

@Pistacchione
Copy link

Hi,

is it possible to use scan and/or scanStream in redis cluster?
And if it's possible, the scan command will scan all redis nodes?

Thanks

@skyzenr
Copy link

skyzenr commented Dec 17, 2018

Hi @Pistacchione ,
I faced the same problem few days ago.

To the best of my knowledge, the SCAN operation iterates over all keys on a single Redis node.
Hence, I think you need to get all nodes first and then use scan on each of them.

Take a look at #175 or https://paluch.biz/blog/162-iterate-over-all-keys-in-a-redis-cluster.html.

Hope it helps.
Roberto

@stale
Copy link

stale bot commented Jan 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed.

@stale stale bot added the wontfix label Jan 18, 2019
@stale stale bot closed this as completed Jan 28, 2019
@swetha21
Copy link

swetha21 commented Jan 5, 2022

HI,

How to query keys from redis.cluster by using specific pattern (using scanStream).
Please do needful.

Thanks,
Swetha

@ghost
Copy link

ghost commented Dec 12, 2022

Would be nice to have some insights here. :)

@QuanTran91
Copy link

Hi guys, we should open this issue. I cannot get all keys with patterns in all nodes.

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

4 participants