Метод |
Описание |
|
add ( mixed $node, integer $weight = null ) |
Adds a node to the distributor with an optional weight. |
|
get ( string $value ) : mixed |
Returns a node from the distributor mapping to the specified value. |
|
getByHash ( mixed $hash ) : mixed |
Returns a node from the distributor using the computed hash of a key. |
|
getBySlot ( mixed $slot ) : mixed | null |
Returns a node from the distributor using its assigned slot ID. |
|
getHashGenerator ( ) : Predis\Cluster\Hash\HashGeneratorInterface |
Returns the underlying hash generator instance. |
|
getSlot ( mixed $hash ) : mixed |
Returns the corresponding slot of a node from the distributor using the
computed hash of a key. |
|
remove ( mixed $node ) |
Removes a node from the distributor. |
|