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

This commit is contained in:
Daniele Alessandri
2010-03-09 16:43:23 +01:00
parent b21b6f8029
commit 52a1c06ac2
+6
View File
@@ -1198,6 +1198,8 @@ class RedisServer_vNext extends RedisServer_v1_2 {
/* commands operating on sorted sets */
'zunion' => '\Predis\Commands\ZSetUnion',
'zsetUnion' => '\Predis\Commands\ZSetUnion',
'zinter' => '\Predis\Commands\ZSetIntersection',
'zsetIntersection' => '\Predis\Commands\ZSetIntersection',
'zcount' => '\Predis\Commands\ZSetCount',
'zsetCount' => '\Predis\Commands\ZSetCount',
'zrank' => '\Predis\Commands\ZSetRank',
@@ -1661,6 +1663,10 @@ class ZSetUnion extends \Predis\InlineCommand {
public function getCommandId() { return 'ZUNION'; }
}
class ZSetIntersection extends \Predis\InlineCommand {
public function getCommandId() { return 'ZINTER'; }
}
class ZSetRange extends \Predis\InlineCommand {
public function getCommandId() { return 'ZRANGE'; }
public function parseResponse($data) {