public function connection($name = null)
    {
        $name = $name ?: 'default';

        if (isset($this->connections[$name])) {
            return $this->connections[$name];
        }

        return $this->connections[$name] = $this->configure(
            $this->resolve($name), $name
        );
    }
public function connection($name = null)
    {
        $name = $name ?: 'default';

        if (isset($this->connections[$name])) {
            return $this->connections[$name];
        }

        return $this->connections[$name] = $this->configure(
            $this->resolve($name), $name
        );
    }
public function connection ( $ name = null ) { $ name = $ name ? : 'default' ; if ( isset ( $ this -> connections [ $ name ] ) ) { return $ this -> connections [ $ name ] ; } return $ this -> connections [ $ name ] = $ this -> configure ( $ this -> resolve ( $ name ) , $ name ) ; }
Get a Redis connection by name.

@param  string|null  $name
@return \Illuminate\Redis\Connections\Connection
Get a Redis connection by name .