关闭连接
null Module_Storage_Driver_Redis::close_connect( )
public function close_connect()
{
if ( $this->config_name && $this->_redis )
{
unset($this->_redis);
Storage_Driver_Redis::$redis_num[$this->config_name]--;
if ( 0 == Storage_Driver_Redis::$redis_num[$this->config_name] )
{
@Storage_Driver_Redis::$redis[$this->config_name]->close();
if (IS_DEBUG)Core::debug()->info('close storage redis server.');
Storage_Driver_Redis::$redis[$this->config_name] = null;
unset(Storage_Driver_Redis::$redis[$this->config_name]);
unset(Storage_Driver_Redis::$redis_num[$this->config_name]);
}
}
}