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

Execute lua script on all nodes without providing key #5946

Open
WPCode opened this issue Jun 11, 2024 · 0 comments
Open

Execute lua script on all nodes without providing key #5946

WPCode opened this issue Jun 11, 2024 · 0 comments
Labels

Comments

@WPCode
Copy link

WPCode commented Jun 11, 2024

Is your feature request related to a problem? Please describe.

I have a use case that all hashes are split across redis nodes in cluster, the hashes may contain common fields. I want to get all the keys of hashes which contain a given field. For example:

node1: hash1 <1, "a">
node2: hash2 <1, "b">
node3: hash3 <2, "c">

Given 1, it will return key name of hash1 and hash2.

Describe the solution you'd like

I want to use Lua script to do that. But lua script requires providing a key, which I don't know in advance unless fetching all keys from redis first. If no key provided, it will send lua script to slot 0. I want to send the lua script to all nodes and then aggregate the result.

Describe alternatives you've considered

@mrniko mrniko added the feature label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants