Flexihash\Flexihash::getAllTargets PHP Method

getAllTargets() public method

A list of all potential targets.
public getAllTargets ( ) : array
return array
    public function getAllTargets()
    {
        return array_keys($this->targetToPositions);
    }

Usage Example

Beispiel #1
0
 public function testRemoveTarget()
 {
     $hashSpace = new Flexihash();
     $hashSpace->addTarget('t-a')->addTarget('t-b')->addTarget('t-c')->removeTarget('t-b');
     $this->assertEquals($hashSpace->getAllTargets(), ['t-a', 't-c']);
 }
All Usage Examples Of Flexihash\Flexihash::getAllTargets