public function setUp() { if (!\OC\Memcache\APC::isAvailable()) { $this->markTestSkipped('The apc extension is not available.'); return; } if (\OC\Memcache\APCu::isAvailable()) { $this->markTestSkipped('The apc extension is emulated by ACPu.'); return; } $this->instance = new \OC\Memcache\APC(uniqid()); }
protected function setUp() { parent::setUp(); if (!\OC\Memcache\APC::isAvailable()) { $this->markTestSkipped('The apc extension is not available.'); return; } if (\OC\Memcache\APCu::isAvailable()) { $this->markTestSkipped('The apc extension is emulated by ACPu.'); return; } $this->instance = new \OC\Memcache\APC($this->getUniqueID()); }
/** * check if there is a in-server backend available * * @return bool */ public function isAvailableLowLatency() { return XCache::isAvailable() || APCu::isAvailable() || APC::isAvailable(); }