protected doSaveMultiple ( array $keysAndValues, integer $lifetime ) : boolean | ||
$keysAndValues | array | Array of keys and values to save in cache |
$lifetime | integer | The lifetime. If != 0, sets a specific lifetime for these cache entries (0 => infinite lifeTime). |
리턴 | boolean | TRUE if the operation was successful, FALSE if it wasn't. |
protected function doSaveMultiple(array $keysAndValues, $lifetime = 0)
{
$success = true;
foreach ($keysAndValues as $key => $value) {
if (!$this->doSave($key, $value, $lifetime)) {
$success = false;
}
}
return $success;
}