public function __construct() { // let's make this a singleton if (isset($memc)) { return $this; } self::$memc = new Memcache(); self::$memc->addServer(self::$host); }