library/Rediska/KeyDistributor/Crc32.php
public function getConnectionByKeyName($name)
    {
        if (empty($this->_connections)) {
            throw new Rediska_KeyDistributor_Exception("No connection exists.");
        }

        if ($this->_connectionCount == 1) {
            return $this->_connections[0];
        }

        $index = abs(crc32($name) % $this->_connectionPositionCount);

        return $this->_connectionPositions[$index];
    }
public function getConnectionByKeyName($name)
    {
        if (empty($this->_connections)) {
            throw new Rediska_KeyDistributor_Exception("No connection exists.");
        }

        if ($this->_connectionCount == 1) {
            return $this->_connections[0];
        }

        $index = abs(crc32($name) % $this->_connectionPositionCount);

        return $this->_connectionPositions[$index];
    }
(non-PHPdoc)
@see Rediska_KeyDistributor_Interface#getConnectionByKeyName