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