protected function setUp() { $cache_folder = __DIR__ . "/../localcache/"; $edb = DatabaseCache::getDatabase('MYSQLI', '127.0.0.1', 3306, 'comodojo', 'root'); $this->manager = new CacheManager(CacheManager::PICK_RANDOM); //$this->manager->add( new ApcCache() ); $this->manager->addProvider(new DatabaseCache($edb, 'cache', 'comodojo_')); $this->manager->addProvider(new FileCache($cache_folder)); $this->manager->addProvider(new MemcachedCache('127.0.0.1')); $this->manager->addProvider(new PhpRedisCache('127.0.0.1')); }
protected function setUp() { $edb = \Comodojo\Cache\DatabaseCache::getDatabase('MYSQLI', '127.0.0.1', 3306, 'comodojo', 'root'); $this->cache = new \Comodojo\Cache\DatabaseCache($edb, 'cache', 'comodojo_'); }