浏览代码

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

Daniele Alessandri 15 年之前
父节点
当前提交
fa62b75b9a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      lib/Predis.php

+ 6 - 0
lib/Predis.php

@@ -1202,6 +1202,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
                 'zsetRank'              => '\Predis\Commands\ZSetRank',
             'zrevrank'                  => '\Predis\Commands\ZSetReverseRank',
                 'zsetReverseRank'       => '\Predis\Commands\ZSetReverseRank',
+            'zremrangebyrank'           => '\Predis\Commands\ZSetRemoveRangeByRank',
+                'zsetRemoveRangeByRank' => '\Predis\Commands\ZSetRemoveRangeByRank',
 
             /* commands operating on hashes */
             'hset'                      => '\Predis\Commands\HSet',
@@ -1705,6 +1707,10 @@ class ZSetReverseRank extends \Predis\InlineCommand {
     public function getCommandId() { return 'ZREVRANK'; }
 }
 
+class ZSetRemoveRangeByRank extends \Predis\InlineCommand {
+    public function getCommandId() { return 'ZREMRANGEBYRANK'; }
+}
+
 /* commands operating on hashes */
 class HSet extends \Predis\MultiBulkCommand {
     public function getCommandId() { return 'HSET'; }