protected function setProperties($properties, $throwExceptionIfPropertyNotSettable = true)
{
foreach ($properties as $propertyName => $propertyValue) {
$propertyWasSet = $this->setProperty($propertyName, $propertyValue);
if ($propertyWasSet) {
continue;
}
if ($throwExceptionIfPropertyNotSettable) {
throw new \InvalidArgumentException('Invalid cache backend option "' . $propertyName . '" for backend of type "' . get_class($this) . '"', 1231267498);
}
}
}