Permalink
Browse files

DCOM-100 Fixed WinCache driver.

  • Loading branch information...
guilhermeblanco committed Jun 9, 2012
1 parent 3137686 commit 380ca1d2dcf353a7a768f8086bd0fe05199fbb56
Showing with 9 additions and 8 deletions.
  1. +9 −8 lib/Doctrine/Common/Cache/WinCacheCache.php
@@ -32,7 +32,7 @@
* @author Roman Borschel <roman@code-factory.org>
* @author David Abdemoulaie <dave@hobodave.com>
*/
-class WincacheCache extends CacheProvider
+class WinCacheCache extends CacheProvider
{
/**
* {@inheritdoc}
@@ -79,14 +79,15 @@ protected function doFlush()
*/
protected function doGetStats()
{
- $info = wincache_ucache_info();
- $meminfo= wincache_ucache_meminfo();
+ $info = wincache_ucache_info();
+ $meminfo = wincache_ucache_meminfo();
+
return array(
- 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_AVAILIABLE => $meminfo['memory_free'],
+ 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_AVAILIABLE => $meminfo['memory_free'],
);
}
}

0 comments on commit 380ca1d

Please sign in to comment.