Browse Source

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

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

+ 6 - 0
lib/Predis.php

@@ -1200,6 +1200,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
                 'zsetCount'             => '\Predis\Commands\ZSetCount',
             'zrank'                     => '\Predis\Commands\ZSetRank',
                 'zsetRank'              => '\Predis\Commands\ZSetRank',
+            'zrevrank'                  => '\Predis\Commands\ZSetReverseRank',
+                'zsetReverseRank'       => '\Predis\Commands\ZSetReverseRank',
 
             /* commands operating on hashes */
             'hset'                      => '\Predis\Commands\HSet',
@@ -1699,6 +1701,10 @@ class ZSetRank extends \Predis\InlineCommand {
     public function getCommandId() { return 'ZRANK'; }
 }
 
+class ZSetReverseRank extends \Predis\InlineCommand {
+    public function getCommandId() { return 'ZREVRANK'; }
+}
+
 /* commands operating on hashes */
 class HSet extends \Predis\MultiBulkCommand {
     public function getCommandId() { return 'HSET'; }