X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Fcache%2Flib%2FDoctrine%2FCommon%2FCache%2FWinCacheCache.php;fp=vendor%2Fdoctrine%2Fcache%2Flib%2FDoctrine%2FCommon%2FCache%2FWinCacheCache.php;h=905ccbc27bd92b82a061823825a947f7e71ee5b1;hb=5e458ff8cb4924fd5fa03b80d8edfcc52fe43479;hp=8a250b29a877e349317fcf00355c45d297fa4365;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/WinCacheCache.php b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/WinCacheCache.php index 8a250b29a..905ccbc27 100644 --- a/vendor/doctrine/cache/lib/Doctrine/Common/Cache/WinCacheCache.php +++ b/vendor/doctrine/cache/lib/Doctrine/Common/Cache/WinCacheCache.php @@ -90,6 +90,16 @@ class WinCacheCache extends CacheProvider return empty($result); } + /** + * {@inheritdoc} + */ + protected function doDeleteMultiple(array $keys) + { + $result = wincache_ucache_delete($keys); + + return is_array($result) && count($result) !== count($keys); + } + /** * {@inheritdoc} */ @@ -98,12 +108,12 @@ class WinCacheCache extends CacheProvider $info = wincache_ucache_info(); $meminfo = wincache_ucache_meminfo(); - return array( + return [ Cache::STATS_HITS => $info['total_hit_count'], Cache::STATS_MISSES => $info['total_miss_count'], Cache::STATS_UPTIME => $info['total_cache_uptime'], Cache::STATS_MEMORY_USAGE => $meminfo['memory_total'], Cache::STATS_MEMORY_AVAILABLE => $meminfo['memory_free'], - ); + ]; } }