跳到主要内容

reconnect

重连redis服务器

声明

bool reconnect(int try_count = 10)

参数

参数名描述
try_count重连次数

返回值

true - 重连成功, false - 重连失败

使用方式

返回文档