Add randomkey command

This commit is contained in:
bijingrui
2023-04-09 21:46:05 +08:00
committed by finley
parent d0a7a215ba
commit 6103ca01c0
4 changed files with 26 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ func makeRouter() map[string]CmdFunc {
routerMap["incrbyfloat"] = defaultFunc
routerMap["decr"] = defaultFunc
routerMap["decrby"] = defaultFunc
routerMap["randomkey"] = randomkey
routerMap["lpush"] = defaultFunc
routerMap["lpushx"] = defaultFunc