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