Predis\Connection\Cluster\PredisCluster::getConnectionByKey PHP Метод

getConnectionByKey() публичный Метод

Retrieves a connection instance from the cluster using a key.
public getConnectionByKey ( string $key ) : Predis\Connection\NodeConnectionInterface
$key string Key string.
Результат Predis\Connection\NodeConnectionInterface
    public function getConnectionByKey($key)
    {
        $hash = $this->strategy->getSlotByKey($key);
        $node = $this->distributor->getBySlot($hash);
        return $node;
    }