Метод | Описание | |
---|---|---|
__construct ( mixed $nodeHashCallback = null ) | ||
hash ( $value ) |
Метод | Описание | |
---|---|---|
addNodeToRing ( &$ring, $node, $totalNodes, $replicas, $weightRatio ) | ||
wrapAroundStrategy ( $upper, $lower, $ringKeysCount ) |
public __construct ( mixed $nodeHashCallback = null ) | ||
$nodeHashCallback | mixed | Callback returning a string used to calculate the hash of nodes. |
protected addNodeToRing ( &$ring, $node, $totalNodes, $replicas, $weightRatio ) |
protected wrapAroundStrategy ( $upper, $lower, $ringKeysCount ) |