original_string: 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
          );
      }
code: 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
          );
      }
code_tokens: 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 ) ; }
docstring: Get a Redis connection by name.
  
  @param  string|null  $name
  @return \Illuminate\Redis\Connections\Connection
docstring_tokens: Get a Redis connection by name .