support mset in cluster

This commit is contained in:
finley
2025-03-12 08:25:41 +08:00
parent 43dc28d335
commit 360de97479
9 changed files with 137 additions and 15 deletions

View File

@@ -62,7 +62,7 @@ func RegisterDefaultCmd(name string) {
// relay command to responsible peer, and return its protocol to client
func DefaultFunc(cluster *Cluster, c redis.Connection, args [][]byte) redis.Reply {
key := string(args[1])
slotId := GetSlot(key)
slotId := cluster.GetSlot(key)
peer := cluster.PickNode(slotId)
if peer == cluster.SelfID() {
// to self db