Esempio n. 1
0
 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());
 }
Esempio n. 2
0
File: apc.php Progetto: evanjt/core
 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());
 }
Esempio n. 3
0
 /**
  * check if there is a in-server backend available
  *
  * @return bool
  */
 public function isAvailableLowLatency()
 {
     return XCache::isAvailable() || APCu::isAvailable() || APC::isAvailable();
 }