mirror of
https://github.com/predis/predis.git
synced 2026-08-31 04:35:05 +00:00
Implemented ZINCRBY (Class: \Predis\Commands\ZSetIncrementBy)
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user