public function getGameCacheValue() { $factory = new ScavengerHuntGames(); $gameId = $this->getVal('gameId', ''); $readWrite = $this->getVal('readwrite', 0); $key = wfSharedMemcKey('ScavengerHuntGameIndex', $gameId, $readWrite ? 1 : 0, ScavengerHuntGames::CACHE_VERSION); $this->setVal('key', $key); $this->setVal('response', unserialize($factory->getCache()->get($key))); }