public function getConnectionByChannelName($name)
    {
        // Get connection
        if ($this->_specifiedConnection) {
            $connection = $this->_specifiedConnection;
        } else {
            $connection = $this->_channel->getRediska()->getConnectionByKeyName($name);
        }

        if (!array_key_exists($connection->getAlias(), $this->_connections)) {
            $this->_connections[$connection->getAlias()] = clone $connection;

            // If more than one - move to non blocking mode
            if (count($this->_connections) > 1) {
                foreach($this->_connections as $connection) {
                    if ($connection->getOption('blockingMode')) {
                        $connection->setOption('blockingMode', false);
                    }
                }
            }
        }
        $connection = $this->_connections[$connection->getAlias()];

        return $connection;
    }
public function getConnectionByChannelName($name)
    {
        // Get connection
        if ($this->_specifiedConnection) {
            $connection = $this->_specifiedConnection;
        } else {
            $connection = $this->_channel->getRediska()->getConnectionByKeyName($name);
        }

        if (!array_key_exists($connection->getAlias(), $this->_connections)) {
            $this->_connections[$connection->getAlias()] = clone $connection;

            // If more than one - move to non blocking mode
            if (count($this->_connections) > 1) {
                foreach($this->_connections as $connection) {
                    if ($connection->getOption('blockingMode')) {
                        $connection->setOption('blockingMode', false);
                    }
                }
            }
        }
        $connection = $this->_connections[$connection->getAlias()];

        return $connection;
    }
public function getConnectionByChannelName ( $ name ) { // Get connection if ( $ this -> _specifiedConnection ) { $ connection = $ this -> _specifiedConnection ; } else { $ connection = $ this -> _channel -> getRediska ( ) -> getConnectionByKeyName ( $ name ) ; } if ( ! array_key_exists ( $ connection -> getAlias ( ) , $ this -> _connections ) ) { $ this -> _connections [ $ connection -> getAlias ( ) ] = clone $ connection ; // If more than one - move to non blocking mode if ( count ( $ this -> _connections ) > 1 ) { foreach ( $ this -> _connections as $ connection ) { if ( $ connection -> getOption ( 'blockingMode' ) ) { $ connection -> setOption ( 'blockingMode' , false ) ; } } } } $ connection = $ this -> _connections [ $ connection -> getAlias ( ) ] ; return $ connection ; }
Get connection by channel name

@param string $name Channel name
@return Rediska_Connection
Get connection by channel name