PHP Error
Redis::connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
/data/html/common/cacheing/URedisCache.php(43)
31
32 /**
33 * redis连接å¥æŸ„
34 *
35 * @var resource
36 */
37 protected $_handler;
38
39 public function init(){
40 parent::init();
41 try{
42 $this->_handler = new Redis ();
43 $this->_handler->connect ( $this->host, $this->port,$this->timeOut);
44 **catch(Exception $e){
45 /** add by pandy at 2015-04-20 */
46 Yii::log('connect redis fail. host:'. $this->host .', port:'. $this->port .', timeOut:'. $this->timeOut .'. error desc:'.$e->getMessage() ,CLogger::LEVEL_ERROR ,'redis error');
47 **
48 **
49
50 protected function generateUniqueKey($key)
51 {
52 return $this->keyPrefix.$key;
53 **
54
55 protected function getValue($key)
Redis::connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
/data/html/common/cacheing/URedisCache.php(43)
31
32 /**
33 * redis连接å¥æŸ„
34 *
35 * @var resource
36 */
37 protected $_handler;
38
39 public function init(){
40 parent::init();
41 try{
42 $this->_handler = new Redis ();
43 $this->_handler->connect ( $this->host, $this->port,$this->timeOut);
44 **catch(Exception $e){
45 /** add by pandy at 2015-04-20 */
46 Yii::log('connect redis fail. host:'. $this->host .', port:'. $this->port .', timeOut:'. $this->timeOut .'. error desc:'.$e->getMessage() ,CLogger::LEVEL_ERROR ,'redis error');
47 **
48 **
49
50 protected function generateUniqueKey($key)
51 {
52 return $this->keyPrefix.$key;
53 **
54
55 protected function getValue($key)
Comment