コード例 #1
0
ファイル: AkMemcache.php プロジェクト: joeymetal/v1
 function test_init_with_wrong_server_using_AkCache_lookupStore()
 {
     $options = array('enabled'=>true,'handler'=>array('type'=>3,'options'=>array('servers'=>array('test:121'))));
     $cache=AkCache::lookupStore($options);
     $this->assertError('Could not connect to MemCache daemon');
     $this->assertFalse($cache);
 }
コード例 #2
0
ファイル: _page_caching.php プロジェクト: joeymetal/v1
 function _flushCache($host)
 {
     $fileCache=AkCache::lookupStore(true);
     if ($fileCache!==false) {
         $fileCache->clean($host);
     }
 }
コード例 #3
0
ファイル: _action_caching.php プロジェクト: joeymetal/v1
 public function _flushCache($host)
 {
     $settings = Ak::getSettings('caching',false);
     $fileCache=AkCache::lookupStore($settings);
     if ($fileCache!==false) {
         $fileCache->clean($host);
     }
 }
コード例 #4
0
ファイル: AkCacheHandler.php プロジェクト: joeymetal/v1
 /**
  * Looks up the cache store from the option array
  *
  * @param array $options
  */
 function _setCacheStore($options=array())
 {
     $this->_cache_store = AkCache::lookupStore($options);
 }