Pre-associate connections to slot ranges using connection parameters.
Pre-associate connections to slot ranges using connection parameters.

This makes it possible to easily assign a connection to a slot range
using the key "slots" in connection parameters like in the following
example:

    $parameters = array(
        'tcp://127.0.0.1:6379?slots=0-1364',
        'tcp://127.0.0.1:6380?slots=1365-2729',
        'tcp://127.0.0.1:6381?slots=2730-4095',
    );

    $options = array('cluster' => 'redis');
    $client = new Predis\Client($parameters, $options);

It is possible to get the full list of slot ranges for each node of
the cluster using redis-cli connected to one of the nodes:

    ./redis-cli -h 127.0.0.1 -p 6379 CLUSTER NODES

The last column in the resulting output contains the slots assigned
to each instance participating to the redis cluster.

WalterShe/predis,protomouse/predis,nguyenthaihan/predis,gencer/predis,SwelenFrance/predis,dominics/predis,nrk/predis,RedisLabs/predis,oswaldderiemaecker/predis,quangnguyen90/predis,dzung2t/predis,SecureCloud-biz/predis,gopalindians/predis,channelgrabber/predis,mrkeng/predis,stokes3452/predis,lvbaosong/predis,vend/predis,moria/predis,zhangyancoder/predis,johnhelmuth/predis,RudyJessop/predis,CloudSide/predis