library/Rediska/KeyDistributor/Crc32.php
public function addConnection($connectionString, $weight = Rediska_Connection::DEFAULT_WEIGHT)
    {
        if (in_array($connectionString, $this->_connections)) {
            throw new Rediska_KeyDistributor_Exception("Connection '$connectionString' already exists.");
        }

        $this->_connections[] = $connectionString;
        $this->_connectionCount++;

        // add connection positions
        for ($index = 0; $index < $weight; $index++) {
            $this->_connectionPositions[] = $connectionString;
            $this->_connectionPositionCount++;
        }

        return $this;
    }
public function addConnection($connectionString, $weight = Rediska_Connection::DEFAULT_WEIGHT)
    {
        if (in_array($connectionString, $this->_connections)) {
            throw new Rediska_KeyDistributor_Exception("Connection '$connectionString' already exists.");
        }

        $this->_connections[] = $connectionString;
        $this->_connectionCount++;

        // add connection positions
        for ($index = 0; $index < $weight; $index++) {
            $this->_connectionPositions[] = $connectionString;
            $this->_connectionPositionCount++;
        }

        return $this;
    }
(non-PHPdoc)
@see Rediska_KeyDistributor_Interface#addConnection