mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
CLUSTER KEYSLOT command
This commit is contained in:
parent
d37299e3b7
commit
1eb713a4c1
@ -1205,6 +1205,10 @@ void clusterCommand(redisClient *c) {
|
||||
(unsigned long)sdslen(info)));
|
||||
addReplySds(c,info);
|
||||
addReply(c,shared.crlf);
|
||||
} else if (!strcasecmp(c->argv[1]->ptr,"keyslot") && c->argc == 3) {
|
||||
sds key = c->argv[2]->ptr;
|
||||
|
||||
addReplyLongLong(c,keyHashSlot(key,sdslen(key)));
|
||||
} else {
|
||||
addReplyError(c,"Wrong CLUSTER subcommand or number of arguments");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user