/** * @return ApcCache */ public function getCache() { $cache = new ApcCache('http://localhost', 'prefix_', array()); // force to clear the current apc instance (ie, ignore the servers informations) $cache->setCurrentOnly(true); return $cache; }