示例#1
0
 public function __construct()
 {
     $this->_time = time();
     $this->_conf = TimingCall_Config::getInstance();
     $this->_keys = $this->_conf['redis_keys'];
     $this->Redis = TimingCall_Redis::getConnect();
 }
示例#2
0
 public static function getConnect()
 {
     $conf = TimingCall_Config::getInstance();
     $redis = new Predis\Client(['scheme' => 'tcp', 'host' => $conf['redis_ip'], 'port' => $conf['redis_prot']]);
     return $redis;
 }