浏览代码

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

Daniele Alessandri 15 年之前
父节点
当前提交
52815adc0f
共有 1 个文件被更改,包括 6 次插入0 次删除
  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'; }