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

        $this->_backends[$connectionString] = $weight;

        $this->_backendsCount++;

        $this->_hashringIsInitialized = false;

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

        $this->_backends[$connectionString] = $weight;

        $this->_backendsCount++;

        $this->_hashringIsInitialized = false;

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