Doctrine\Common\Cache\CacheProvider::doSaveMultiple PHP Метод

doSaveMultiple() защищенный Метод

Default implementation of doSaveMultiple. Each driver that supports multi-put should override it.
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;
    }