]> git.saurik.com Git - redis.git/blobdiff - redis.c
ZLEN renamed ZCARD for consistency with SCARD
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index f625333147b3bd55abef59f599c7054fbe6612ea..01e5ca3c394baefcbfad12ac84478d4230c0ac30 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -450,7 +450,7 @@ static void zaddCommand(redisClient *c);
 static void zrangeCommand(redisClient *c);
 static void zrangebyscoreCommand(redisClient *c);
 static void zrevrangeCommand(redisClient *c);
-static void zlenCommand(redisClient *c);
+static void zcardCommand(redisClient *c);
 static void zremCommand(redisClient *c);
 static void zscoreCommand(redisClient *c);
 
@@ -496,7 +496,7 @@ static struct redisCommand cmdTable[] = {
     {"zrange",zrangeCommand,4,REDIS_CMD_INLINE},
     {"zrangebyscore",zrangebyscoreCommand,4,REDIS_CMD_INLINE},
     {"zrevrange",zrevrangeCommand,4,REDIS_CMD_INLINE},
-    {"zlen",zlenCommand,2,REDIS_CMD_INLINE},
+    {"zcard",zcardCommand,2,REDIS_CMD_INLINE},
     {"zscore",zscoreCommand,3,REDIS_CMD_BULK|REDIS_CMD_DENYOOM},
     {"incrby",incrbyCommand,3,REDIS_CMD_INLINE|REDIS_CMD_DENYOOM},
     {"decrby",decrbyCommand,3,REDIS_CMD_INLINE|REDIS_CMD_DENYOOM},
@@ -4154,7 +4154,7 @@ static void zrangebyscoreCommand(redisClient *c) {
     }
 }
 
-static void zlenCommand(redisClient *c) {
+static void zcardCommand(redisClient *c) {
     robj *o;
     zset *zs;