]> git.saurik.com Git - redis.git/blobdiff - redis-cli.c
revert 0c390a to stop using tricks with o->refcount
[redis.git] / redis-cli.c
index b1f1e40f83dc559836090897e0ee1834df01d9b8..b34c42773364b0e868a068c544f7cbc610bbea09 100644 (file)
@@ -151,12 +151,19 @@ static struct redisCommand cmdTable[] = {
     {"discard",1,REDIS_CMD_INLINE},
     {"hset",4,REDIS_CMD_MULTIBULK},
     {"hget",3,REDIS_CMD_BULK},
+    {"hmset",-4,REDIS_CMD_MULTIBULK},
+    {"hmget",-3,REDIS_CMD_MULTIBULK},
+    {"hincrby",4,REDIS_CMD_INLINE},
     {"hdel",3,REDIS_CMD_BULK},
     {"hlen",2,REDIS_CMD_INLINE},
     {"hkeys",2,REDIS_CMD_INLINE},
     {"hvals",2,REDIS_CMD_INLINE},
     {"hgetall",2,REDIS_CMD_INLINE},
     {"hexists",3,REDIS_CMD_BULK},
+    {"config",-2,REDIS_CMD_BULK},
+    {"subscribe",-2,REDIS_CMD_INLINE},
+    {"unsubscribe",-1,REDIS_CMD_INLINE},
+    {"publish",3,REDIS_CMD_BULK},
     {NULL,0,0}
 };
 
@@ -457,7 +464,7 @@ static void repl() {
     char *line;
     char **ap, *args[max];
 
-    while((line = linenoise(">> ")) != NULL) {
+    while((line = linenoise("redis> ")) != NULL) {
         if (line[0] != '\0') {
           linenoiseHistoryAdd(line);
           argc = 0;