public function config($aliasOrConnection = null)
    {
        if ($aliasOrConnection instanceof Rediska_Connection) {
            $connection = $aliasOrConnection;
        } elseif ($aliasOrConnection !== null) {
            $connection = $this->getConnectionByAlias($aliasOrConnection);
        } elseif ($this->_specifiedConnection->getConnection()) {
            $connection = $this->_specifiedConnection->getConnection();
        } else {
            $connections = $this->getConnections();
            if (count($connections) == 1) {
                $connection = $connections[0];
            } else {
                throw new Rediska_Transaction_Exception('You must specify connection by $aliasOrConnection argument!');
            }
        }

        return new Rediska_Config($this, $connection);
    }
public function config($aliasOrConnection = null)
    {
        if ($aliasOrConnection instanceof Rediska_Connection) {
            $connection = $aliasOrConnection;
        } elseif ($aliasOrConnection !== null) {
            $connection = $this->getConnectionByAlias($aliasOrConnection);
        } elseif ($this->_specifiedConnection->getConnection()) {
            $connection = $this->_specifiedConnection->getConnection();
        } else {
            $connections = $this->getConnections();
            if (count($connections) == 1) {
                $connection = $connections[0];
            } else {
                throw new Rediska_Transaction_Exception('You must specify connection by $aliasOrConnection argument!');
            }
        }

        return new Rediska_Config($this, $connection);
    }
public function config ( $ aliasOrConnection = null ) { if ( $ aliasOrConnection instanceof Rediska_Connection ) { $ connection = $ aliasOrConnection ; } elseif ( $ aliasOrConnection !== null ) { $ connection = $ this -> getConnectionByAlias ( $ aliasOrConnection ) ; } elseif ( $ this -> _specifiedConnection -> getConnection ( ) ) { $ connection = $ this -> _specifiedConnection -> getConnection ( ) ; } else { $ connections = $ this -> getConnections ( ) ; if ( count ( $ connections ) == 1 ) { $ connection = $ connections [ 0 ] ; } else { throw new Rediska_Transaction_Exception ( 'You must specify connection by $aliasOrConnection argument!' ) ; } } return new Rediska_Config ( $ this , $ connection ) ; }
Get Redis server configuration

@param $aliasOrConnection Server alias or Rediska_Connection object
@return Rediska_Config
Get Redis server configuration