Predis\Cluster\Distributor\KetamaRing::wrapAroundStrategy PHP Метод

wrapAroundStrategy() защищенный Метод

protected wrapAroundStrategy ( $upper, $lower, $ringKeysCount )
    protected function wrapAroundStrategy($upper, $lower, $ringKeysCount)
    {
        // Binary search for the first item in ringkeys with a value greater
        // or equal to the key. If no such item exists, return the first item.
        return $lower < $ringKeysCount ? $lower : 0;
    }