Fix SINTERSTORE and SUNIONSTORE to accept an array for the list of source keys.

This commit is contained in:
Daniele Alessandri
2011-03-27 09:38:30 +02:00
parent 0f751cabcb
commit d6a445f1ec
2 changed files with 10 additions and 1 deletions
+4 -1
View File
@@ -7,6 +7,9 @@ use Predis\Utils;
class SetIntersectionStore extends Command {
public function getId() { return 'SINTERSTORE'; }
public function filterArguments(Array $arguments) {
return Utils::filterArrayArguments($arguments);
if (count($arguments) === 2 && is_array($arguments[1])) {
return array_merge(array($arguments[0]), $arguments[1]);
}
return $arguments;
}
}