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));
    }