2017-01-21 6 views

답변

1

getConnectionByKey()을 사용하면 해당 정보를 얻을 수 있습니다. 예에서

:

$cluster = new PredisCluster(); 
$cluster->add($connection); 
$cluster->add($connection2); 
$connection = $cluster->getConnectionByKey($key); 

소스 : PredisClusterTest.php

+0

고마워요 마크! –