(pedantic) Should assign to $client = $this->masterClient to be consistent with other code.

A good optimization would be to skip byHash if there is only one client (e.g. if using Sentinel and only the master is online).