We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I call redisClusterCommand func to execute SCAN operation but got err:No keys in command(must have keys for redis cluster mode)
the code is as follows:
cluster_ctx = redisClusterContextInit(); redisClusterSetOptionAddNodes(cluster_ctx, rdbhosts); redisClusterConnect2(cluster_ctx); if (cluster_ctx == NULL || cluster_ctx->err) { printf("Error connect cluster: %s\n", cluster_ctx->errstr); } int cursor = 0; char *pattern = "key*"; redisReply *reply = redisClusterCommand(cluster_ctx, "SCAN %d MATCH %s", cursor, pattern); if (reply == NULL) { printf("scan cluster reply null: %s\n", cluster_ctx->errstr); } redisClusterFree(cluster_ctx);
The text was updated successfully, but these errors were encountered:
The suggestion is to use the low-level API, see this issue #50 (comment) with similar topic.
Unfortunately there are no examples of SCAN, but maybe you can get some ideas from https://github.com/Nordix/hiredis-cluster/blob/master/tests/ct_specific_nodes.c#L46 ?
SCAN
Sorry, something went wrong.
No branches or pull requests
I call redisClusterCommand func to execute SCAN operation but got err:No keys in command(must have keys for redis cluster mode)
the code is as follows:
The text was updated successfully, but these errors were encountered: