protected function setMemcacheObject($host = 'localhost', $port = 11211) { $this->memcache = new \Memcache(); if (!$this->memcache->connect($host, $port)) { $this->ReportError('memcache connection error', __LINE__); } }