Security update to Drupal 8.4.6
[yaffs-website] / vendor / doctrine / cache / lib / Doctrine / Common / Cache / ApcuCache.php
index 2a91752ba851af05bebc91776a417ccab4ff404a..5449b02e75712d882446aaf28ccf4c9c89a79bc2 100644 (file)
@@ -61,6 +61,16 @@ class ApcuCache extends CacheProvider
         return apcu_delete($id) || ! apcu_exists($id);
     }
 
+    /**
+     * {@inheritdoc}
+     */
+    protected function doDeleteMultiple(array $keys)
+    {
+        $result = apcu_delete($keys);
+
+        return false !== $result && count($result) !== count($keys);
+    }
+
     /**
      * {@inheritdoc}
      */
@@ -95,12 +105,12 @@ class ApcuCache extends CacheProvider
         $info = apcu_cache_info(true);
         $sma  = apcu_sma_info();
 
-        return array(
+        return [
             Cache::STATS_HITS             => $info['num_hits'],
             Cache::STATS_MISSES           => $info['num_misses'],
             Cache::STATS_UPTIME           => $info['start_time'],
             Cache::STATS_MEMORY_USAGE     => $info['mem_size'],
             Cache::STATS_MEMORY_AVAILABLE => $sma['avail_mem'],
-        );
+        ];
     }
 }