Implemented ZINCRBY (Class: \Predis\Commands\ZSetIncrementBy)

This commit is contained in:
Daniele Alessandri
2009-11-20 22:23:42 +01:00
parent 768c211ddd
commit af810d9613
+7
View File
@@ -259,6 +259,8 @@ class Client {
/* commands operating on sorted sets */
'zadd' => '\Predis\Commands\ZSetAdd',
'zsetAdd' => '\Predis\Commands\ZSetAdd',
'zincrby' => '\Predis\Commands\ZSetIncrementBy',
'zsetIncrementBy' => '\Predis\Commands\ZSetIncrementBy',
'zrem' => '\Predis\Commands\ZSetRemove',
'zsetRemove' => '\Predis\Commands\ZSetRemove',
'zrange' => '\Predis\Commands\ZSetRange',
@@ -982,6 +984,11 @@ class ZSetAdd extends \Predis\BulkCommand {
public function parseResponse($data) { return (bool) $data; }
}
class ZSetIncrementBy extends \Predis\BulkCommand {
public function getCommandId() { return 'ZINCRBY'; }
public function parseResponse($data) { return (bool) $data; }
}
class ZSetRemove extends \Predis\BulkCommand {
public function getCommandId() { return 'ZREM'; }
public function parseResponse($data) { return (bool) $data; }