コード例 #1
0
ファイル: MemcacheTest.php プロジェクト: mpoiriert/nucleus
 protected function getCacheService()
 {
     $memcache = Memcache::factory();
     $reflectionObject = new ReflectionObject($memcache);
     $memcacheProperty = $reflectionObject->getProperty('memcache');
     $memcacheProperty->setAccessible(true);
     try {
         $memcacheProperty->getValue($memcache)->getExtendedStats();
     } catch (\Exception $e) {
         $this->markTestSkipped('Exception on memcache :' . $e->getMessage());
     }
     return $memcache;
 }
コード例 #2
0
ファイル: Memcache.php プロジェクト: mpoiriert/nucleus
 private function setNamespaceSalt($namespace, $value)
 {
     $this->memcache->set($namespace . '.metadata', $value);
 }