Add info command

This commit is contained in:
bijingrui
2023-03-15 22:20:40 +08:00
committed by finley
parent 11c0385241
commit d0a7a215ba
7 changed files with 105 additions and 43 deletions

View File

@@ -132,6 +132,9 @@ func (cluster *Cluster) Exec(c redis.Connection, cmdLine [][]byte) (result redis
}
}()
cmdName := strings.ToLower(string(cmdLine[0]))
if cmdName == "info" {
return database2.Info(c, cmdLine)
}
if cmdName == "auth" {
return database2.Auth(c, cmdLine[1:])
}