public function byHash($key) { return $this->clients[$this->hash($key)]; }
public function testByHash() { $this->cluster->set('key', 'value'); $this->assertEquals(6379, $this->cluster->byHash('key')->getPort()); }