mirror of
https://github.com/HDT3213/godis.git
synced 2025-11-02 21:04:01 +08:00
add some unittest
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/hdt3213/godis/redis/reply"
|
||||
)
|
||||
|
||||
// TODO: support multiplex slots
|
||||
// Rename renames a key, the origin and the destination must within the same slot
|
||||
func Rename(cluster *Cluster, c redis.Connection, args [][]byte) redis.Reply {
|
||||
if len(args) != 3 {
|
||||
return reply.MakeErrReply("ERR wrong number of arguments for 'rename' command")
|
||||
|
||||
Reference in New Issue
Block a user