X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdoctrine%2Fcache%2Flib%2FDoctrine%2FCommon%2FCache%2FApcuCache.php;h=5449b02e75712d882446aaf28ccf4c9c89a79bc2;hp=2a91752ba851af05bebc91776a417ccab4ff404a;hb=refs%2Fheads%2Ft2;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5 diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php index 2a91752ba..5449b02e7 100644 --- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php +++ b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcuCache.php @@ -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'], - ); + ]; } }