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

[NEW] Supports invoke RM_Call() on the replica node for read-only cmd #1323

Open
jjz921024 opened this issue Nov 19, 2024 · 1 comment
Open

Comments

@jjz921024
Copy link

The problem/use-case that the feature addresses

I want to implement a module that exec read-only commands on the replica node. such as:

RedisModuleCallReply *reply = RedisModule_Call(ctx, "TYPE", "s", key);

But, the return value reply is always NULL.

@hwware
Copy link
Member

hwware commented Nov 19, 2024

Can you try the RedisModule_Call(ctx, "TYPE", "c", key); ? I try this way works (BTW, i just set key as 1000, I am not sure how your key type)

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