/**
  * @since 2.3
  *
  * @param string $poolCacheName
  *
  * @return Cache
  */
 public function getPoolCacheFor($poolCacheName)
 {
     if (!isset($this->poolCacheList[$poolCacheName])) {
         $this->poolCacheList[$poolCacheName] = $this->cacheFactory->newFixedInMemoryCache(500);
     }
     return $this->poolCacheList[$poolCacheName];
 }
 public function testCanConstructMediaWikiCompositeCache()
 {
     $instance = new CacheFactory('hash');
     $this->assertInstanceOf('Onoi\\Cache\\Cache', $instance->newMediaWikiCompositeCache(CACHE_NONE));
     $this->assertInstanceOf('Onoi\\Cache\\Cache', $instance->newMediaWikiCompositeCache($instance->getMainCacheType()));
 }
 public function testCanConstructBlobStore()
 {
     $instance = new CacheFactory('hash');
     $this->assertInstanceOf('Onoi\\BlobStore\\BlobStore', $instance->newBlobStore('foo', CACHE_NONE));
 }