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