public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); $this->_mgo = new MongoWrapper($this->_cfg['mongo-rep']); $this->_mgo->setDbName('test'); $this->_mgo->setColctName('usertable'); }
/** * @param $config */ public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); $this->_rdkc = new KafkaConsumerWrapper($this->_cfg['kafka']); $this->_rdkp = new KafkaProducerWrapper($this->_cfg['kafka']); $this->_hmg = new HandleMsg(); }
public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); $this->_redis = new Client($this->_cfg['redis-cluster']); }
public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); }
public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); $this->_msql = new Mysql($this->_cfg); }
public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); $this->_hec = new HandleExec($this->_cfg); }
public function __construct() { $this->_cfg = CommonFunc::getLogicConf(__CLASS__); $this->_bf = new BloomFilter($this->_cfg['bloom']['bitsize'], $this->_cfg['bloom']['hashcount'], $this->_cfg['key_bloom'], $this->_cfg['redis']); }