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

This commit is contained in:
Daniele Alessandri
2010-03-09 16:37:54 +01:00
parent 52815adc0f
commit fa62b75b9a
+6
View File
@@ -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'; }