Method |
Description |
|
__construct ( Flexihash\Hasher\HasherInterface $hasher = null, integer $replicas = null ) |
Constructor. |
|
__toString ( ) |
|
|
addTarget ( string $target, float $weight = 1 ) |
Add a target. |
|
addTargets ( array $targets, float $weight = 1 ) : self |
Add a list of targets. |
|
getAllTargets ( ) : array |
A list of all potential targets. |
|
lookup ( string $resource ) : string |
Looks up the target for the given resource. |
|
lookupList ( string $resource, integer $requestedCount ) : array |
Get a list of targets for the resource, in order of precedence. |
|
removeTarget ( string $target ) : self |
Remove a target. |
|