Predis\Cluster\SlotMap::isValidRange PHP Метод

isValidRange() публичный статический Метод

Checks if the given slot range is valid.
public static isValidRange ( integer $first, integer $last ) : boolean
$first integer Initial slot of the range.
$last integer Last slot of the range.
Результат boolean
    public static function isValidRange($first, $last)
    {
        return $first >= 0x0 && $first <= 0x3fff && $last >= 0x0 && $last <= 0x3fff && $first <= $last;
    }