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

getSlots() публичный Метод

Returns the specified slot range.
public getSlots ( integer $first, integer $last ) : array
$first integer Initial slot of the range.
$last integer Last slot of the range.
Результат array
    public function getSlots($first, $last)
    {
        if (!static::isValidRange($first, $last)) {
            throw new \OutOfBoundsException("Invalid slot range {$first}-{$last}");
        }
        return array_intersect_key($this->slots, array_fill($first, $last - $first + 1, null));
    }