mirror of
https://github.com/predis/predis.git
synced 2026-08-31 04:35:05 +00:00
New command: ZCOUNT (Redis v2.0-dev).
This commit is contained in:
@@ -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'; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user