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

This commit is contained in:
Daniele Alessandri
2010-02-27 10:39:47 +01:00
parent 90d7b252ae
commit ad540776ac
+8
View File
@@ -1084,6 +1084,10 @@ class RedisServer_vNext extends RedisServer_v1_2 {
'popFirstBlocking' => '\Predis\Commands\ListPopFirstBlocking',
'brpop' => '\Predis\Commands\ListPopLastBlocking',
'popLastBlocking' => '\Predis\Commands\ListPopLastBlocking',
/* commands operating on sorted sets */
'zcount' => '\Predis\Commands\ZCount',
'zsetCount' => '\Predis\Commands\ZCount',
));
}
}
@@ -1452,6 +1456,10 @@ class ZSetRangeByScore extends \Predis\InlineCommand {
public function getCommandId() { return 'ZRANGEBYSCORE'; }
}
class ZCount extends \Predis\InlineCommand {
public function getCommandId() { return 'ZCOUNT'; }
}
class ZSetCardinality extends \Predis\InlineCommand {
public function getCommandId() { return 'ZCARD'; }
}