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

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