Make ZADD and ZREM variadic commands for Redis 2.4.

This commit is contained in:
Daniele Alessandri
2011-05-31 21:28:37 +02:00
parent 42521f2558
commit 962037321a
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -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;
}
+6
View File
@@ -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;
}