Beispiel #1
0
 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);
 }
Beispiel #2
0
 function _flushCache($host)
 {
     $fileCache=AkCache::lookupStore(true);
     if ($fileCache!==false) {
         $fileCache->clean($host);
     }
 }
Beispiel #3
0
 public function _flushCache($host)
 {
     $settings = Ak::getSettings('caching',false);
     $fileCache=AkCache::lookupStore($settings);
     if ($fileCache!==false) {
         $fileCache->clean($host);
     }
 }
Beispiel #4
0
 /**
  * Looks up the cache store from the option array
  *
  * @param array $options
  */
 function _setCacheStore($options=array())
 {
     $this->_cache_store = AkCache::lookupStore($options);
 }