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