예제 #1
0
 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
 private function setNamespaceSalt($namespace, $value)
 {
     $this->memcache->set($namespace . '.metadata', $value);
 }