Browse Source

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

Daniele Alessandri 15 years ago
parent
commit
fa62b75b9a
1 changed files with 6 additions and 0 deletions
  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'; }