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

This commit is contained in:
Daniele Alessandri
2010-03-04 12:16:14 +01:00
parent 0b229a5057
commit 28bac3b3b0
+6
View File
@@ -1105,6 +1105,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
/* commands operating on sorted sets */
'zcount' => '\Predis\Commands\ZCount',
'zsetCount' => '\Predis\Commands\ZCount',
'zrank' => '\Predis\Commands\ZSetRank',
'zsetRank' => '\Predis\Commands\ZSetRank',
));
}
}
@@ -1500,6 +1502,10 @@ class ZSetRemoveRangeByScore extends \Predis\InlineCommand {
public function getCommandId() { return 'ZREMRANGEBYSCORE'; }
}
class ZSetRank extends \Predis\InlineCommand {
public function getCommandId() { return 'ZRANK'; }
}
/* multiple databases handling commands */
class SelectDatabase extends \Predis\InlineCommand {
public function canBeHashed() { return false; }