Example #1
0
 public function __construct()
 {
     $this->_cfg = CommonFunc::getLogicConf(__CLASS__);
     $this->_mgo = new MongoWrapper($this->_cfg['mongo-rep']);
     $this->_mgo->setDbName('test');
     $this->_mgo->setColctName('usertable');
 }
Example #2
0
 /**
  * @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();
 }
Example #3
0
 public function __construct()
 {
     $this->_cfg = CommonFunc::getLogicConf(__CLASS__);
     $this->_redis = new Client($this->_cfg['redis-cluster']);
 }
Example #4
0
 public function __construct()
 {
     $this->_cfg = CommonFunc::getLogicConf(__CLASS__);
 }
Example #5
0
 public function __construct()
 {
     $this->_cfg = CommonFunc::getLogicConf(__CLASS__);
     $this->_msql = new Mysql($this->_cfg);
 }
Example #6
0
 public function __construct()
 {
     $this->_cfg = CommonFunc::getLogicConf(__CLASS__);
     $this->_hec = new HandleExec($this->_cfg);
 }
Example #7
0
 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']);
 }