Skip to content
Permalink
Browse files
update
  • Loading branch information
wangjinxi committed Jul 17, 2019
1 parent d8e174b commit c418f0b24a16868083cd71c1d25351ea13a413aa
Showing 1 changed file with 9 additions and 1 deletion.
@@ -169,7 +169,15 @@ public function getlist($key)
{
if (!empty($key) && isset($this->m_redis))
{
return $this->getlRange($key);
try{
return $this->getlRange($key);
}catch (\Exception $e){
$this->logger->warn('redis current connect excepiton'.' |errcode:'.$e->getCode().' |errmsg:'.$e->getMessage());
$this->close();
//重试一次防止连接成功后,连接断开
$this->get_redis();
return $this->getlRange($key);
}
}
else
{

0 comments on commit c418f0b

Please sign in to comment.