src/Connection/Aggregate/PredisCluster.php
public function getConnectionByKey($key)
    {
        $hash = $this->strategy->getSlotByKey($key);
        $node = $this->distributor->getBySlot($hash);

        return $node;
    }
public function getConnectionByKey($key)
    {
        $hash = $this->strategy->getSlotByKey($key);
        $node = $this->distributor->getBySlot($hash);

        return $node;
    }
public function getConnectionByKey ( $ key ) { $ hash = $ this -> strategy -> getSlotByKey ( $ key ) ; $ node = $ this -> distributor -> getBySlot ( $ hash ) ; return $ node ; }
Retrieves a connection instance from the cluster using a key.

@param string $key Key string.

@return NodeConnectionInterface
Retrieves a connection instance from the cluster using a key .