From: antirez Date: Tue, 9 Mar 2010 15:19:33 +0000 (+0100) Subject: Merged ZREVRANK from Pietern X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/e3f46030fcfd0ffd916d473b16d0ed07e138fefb?ds=inline;hp=--cc Merged ZREVRANK from Pietern --- e3f46030fcfd0ffd916d473b16d0ed07e138fefb diff --cc redis.c index 3c1408f7,c882694d..c1777c76 --- a/redis.c +++ b/redis.c @@@ -5668,7 -5583,15 +5674,15 @@@ static void zrankGenericCommand(redisCl } } + static void zrankCommand(redisClient *c) { + zrankGenericCommand(c, 0); + } + + static void zrevrankCommand(redisClient *c) { + zrankGenericCommand(c, 1); + } + -/* ==================================== Hash ================================ */ +/* =================================== Hashes =============================== */ static void hsetCommand(redisClient *c) { int update = 0; robj *o = lookupKeyWrite(c->db,c->argv[1]);