public function setValues($values, $expiration = NULL)
 {
     $timeStart = microtime(TRUE);
     $errorEntryNames = parent::setValues($values, $expiration);
     $entryCount = count($values);
     $errorEntryCount = count($errorEntryNames);
     $successfulEntryCount = $entryCount - $errorEntryCount;
     LogHelper::log_info(t("[@cacheType] Execution time for @successFlag storing of @entryCount entries is !executionTime", array('@cacheType' => $this->getCacheType(), '@entryCount' => $errorEntryCount == 0 ? $entryCount : ($successfulEntryCount == 0 ? $entryCount : "{$successfulEntryCount} out of {$entryCount}"), '!executionTime' => ExecutionPerformanceHelper::formatExecutionTime($timeStart), '@successFlag' => $errorEntryCount == 0 ? 'SUCCESSFUL' : ($successfulEntryCount == 0 ? 'UNSUCCESSFUL' : 'successful'))));
     // some errors but also some success
     return $errorEntryNames;
 }
    public function setValues(array $values, $expirationTime = NULL, array $options = NULL) {
        $adjustedExpirationTime = $this->calculateEntryExpirationTime($expirationTime);

        $timeStart = microtime(TRUE);

        $errorEntryNames = parent::setValues($values, $adjustedExpirationTime, $options);

        $entryCount = count($values);
        $errorEntryCount = count($errorEntryNames);
        $successfulEntryCount = $entryCount - $errorEntryCount;

        LogHelper::log_info(t(
            "[@cacheType] Execution time for@successFlag storing of @entryCount entry(-ies) is !executionTime",
            array(
                '@cacheType' => $this->getCacheType(),
                '@entryCount' => (
                ($errorEntryCount == 0)
                    ? $entryCount // no error at all
                    : (($successfulEntryCount == 0)
                    ? $entryCount // all errors
                    : ($successfulEntryCount . ' ' . t('out of') . ' ' . $entryCount))), // some errors but also some success
                '!executionTime' => LogHelper::formatExecutionTime($timeStart),
                '@successFlag' => (
                ($errorEntryCount == 0) ? '' : (' ' . (($successfulEntryCount == 0) ? t('UNSUCCESSFUL') : t('PARTIALLY SUCCESSFUL')))))));

        return $errorEntryNames;
    }