示例#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());
 }
示例#2
0
文件: apc.php 项目: 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());
 }
示例#3
0
 /**
  * check if there is a in-server backend available
  *
  * @return bool
  */
 public function isAvailableLowLatency()
 {
     return XCache::isAvailable() || APCu::isAvailable() || APC::isAvailable();
 }