mirror of
https://github.com/predis/predis.git
synced 2026-10-09 13:26:57 +00:00
Fix SINTERSTORE and SUNIONSTORE to accept an array for the list of source keys.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user