public function setServer($server) { $this->server = $server; $this->params = $server->getParams(); $this->redis = DBFactory::getInstance('Chat'); }
public function onWorkerStart() { $this->redis = DBFactory::getInstance('Chat'); }
public function __construct($server) { $this->server = $server; $this->redis = DBFactory::getInstance('Chat'); }