support watch command

This commit is contained in:
hdt3213
2021-06-20 11:48:18 +08:00
parent 5d05e2e613
commit ae25076689
13 changed files with 272 additions and 40 deletions

View File

@@ -110,6 +110,8 @@ func makeRouter() map[string]CmdFunc {
routerMap["flushdb"] = FlushDB
routerMap["flushall"] = FlushAll
routerMap[relayMulti] = execRelayedMulti
routerMap["getver"] = defaultFunc
routerMap["watch"] = execWatch
return routerMap
}