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