diff --git a/cmd/ledis-cli/const.go b/cmd/ledis-cli/const.go index 1cdff8f..4e89d4d 100644 --- a/cmd/ledis-cli/const.go +++ b/cmd/ledis-cli/const.go @@ -5,6 +5,8 @@ var helpCommands = [][]string{ {"DECRBY", "key decrement", "KV"}, {"DEL", "key [key ...]", "KV"}, {"EXISTS", "key", "KV"}, + {"EXPIRE", "key seconds", "KV"}, + {"EXPIREAT", "key timestamp", "KV"}, {"GET", "key", "KV"}, {"GETSET", " key value", "KV"}, {"INCR", "key", "KV"}, @@ -13,9 +15,8 @@ var helpCommands = [][]string{ {"MSET", "key value [key value ...]", "KV"}, {"SET", "key value", "KV"}, {"SETNX", "key value", "KV"}, - {"EXPIRE", "key seconds", "KV"}, - {"EXPIREAT", "key timestamp", "KV"}, - {"TTL", "PERSIST", "KV"}, + {"TTL", "key", "KV"}, + {"PERSIST", "key", "KV"}, {"HDEL", "key field [field ...]", "Hash"}, {"HEXISTS", "key field", "Hash"}, {"HGET", "key field", "Hash"}, @@ -56,6 +57,7 @@ var helpCommands = [][]string{ {"ZREM", "key member [member ...]", "ZSet"}, {"ZREMRANGEBYRANK", "key start stop", "ZSet"}, {"ZREMRANGEBYSCORE", "key min max", "ZSet"}, + {"ZREVRANGE", "key start stop [WITHSCORES]", "ZSet"}, {"ZREVRANGEBYSCORE", "key max min [WITHSCORES][LIMIT offset count]", "ZSet"}, {"ZREVRANK", "key member", "ZSet"}, {"ZSCORE", "key member", "ZSet"}, @@ -65,6 +67,7 @@ var helpCommands = [][]string{ {"ZEXPIREAT", "key timestamp", "ZSet"}, {"ZTTL", "key", "ZSet"}, {"ZPERSIST", "key", "ZSet"}, + {"BDELETE", "key", "ZSet"}, {"BGET", "key", "Bitmap"}, {"BGETBIT", "key offset", "Bitmap"}, {"BSETBIT", "key offset value", "Bitmap"},