Predis\Cluster\SlotMap::offsetGet PHP Méthode

offsetGet() public méthode

Returns the node assigned to the specified slot.
public offsetGet ( integer $slot ) : string
$slot integer Slot index.
Résultat string
    public function offsetGet($slot)
    {
        if (isset($this->slots[$slot])) {
            return $this->slots[$slot];
        }
    }