mirror of
https://github.com/predis/predis.git
synced 2026-09-02 05:37:02 +00:00
Make ZADD and ZREM variadic commands for Redis 2.4.
This commit is contained in:
@@ -2,11 +2,17 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Helpers;
|
||||
|
||||
class ZSetAdd extends Command {
|
||||
public function getId() {
|
||||
return 'ZADD';
|
||||
}
|
||||
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterVariadicValues($arguments);
|
||||
}
|
||||
|
||||
public function parseResponse($data) {
|
||||
return (bool) $data;
|
||||
}
|
||||
|
||||
@@ -2,11 +2,17 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Helpers;
|
||||
|
||||
class ZSetRemove extends Command {
|
||||
public function getId() {
|
||||
return 'ZREM';
|
||||
}
|
||||
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterVariadicValues($arguments);
|
||||
}
|
||||
|
||||
public function parseResponse($data) {
|
||||
return (bool) $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user