关闭所有链接
null Module_Storage_Driver_Redis::close_all_connect( )
public static function close_all_connect()
{
foreach (Storage_Driver_Redis::$redis as $config_name=>$obj)
{
try
{
$obj->close();
}
catch (Exception $e)
{
Core::debug()->error('close redis storage connect error:'.$e);
}
Storage_Driver_Redis::$redis[$config_name] = null;
}
# 重置全部数据
Storage_Driver_Redis::$redis = array();
Storage_Driver_Redis::$redis_num = array();
if (IS_DEBUG)Core::debug()->info('close all storage redis server.');
}