Browse Source

New command: ZRANK (Redis v2.0-dev).

Daniele Alessandri 15 years ago
parent
commit
28bac3b3b0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      lib/Predis.php

+ 6 - 0
lib/Predis.php

@@ -1105,6 +1105,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
             /* commands operating on sorted sets */
             /* commands operating on sorted sets */
             'zcount'                    => '\Predis\Commands\ZCount',
             'zcount'                    => '\Predis\Commands\ZCount',
                 'zsetCount'             => '\Predis\Commands\ZCount',
                 'zsetCount'             => '\Predis\Commands\ZCount',
+            'zrank'                     => '\Predis\Commands\ZSetRank',
+                'zsetRank'              => '\Predis\Commands\ZSetRank',
         ));
         ));
     }
     }
 }
 }
@@ -1500,6 +1502,10 @@ class ZSetRemoveRangeByScore extends \Predis\InlineCommand {
     public function getCommandId() { return 'ZREMRANGEBYSCORE'; }
     public function getCommandId() { return 'ZREMRANGEBYSCORE'; }
 }
 }
 
 
+class ZSetRank extends \Predis\InlineCommand {
+    public function getCommandId() { return 'ZRANK'; }
+}
+
 /* multiple databases handling commands */
 /* multiple databases handling commands */
 class SelectDatabase extends \Predis\InlineCommand {
 class SelectDatabase extends \Predis\InlineCommand {
     public function canBeHashed()  { return false; }
     public function canBeHashed()  { return false; }