Method | Description | |
---|---|---|
getDistributor ( ) : Predis\Cluster\Distributor\DistributorInterface | Returns a distributor instance to be used by the cluster. | |
getSlot ( Predis\Command\CommandInterface $command ) : integer | Returns a slot for the given command used for clustering distribution or NULL when this is not possible. | |
getSlotByKey ( string $key ) : integer | Returns a slot for the given key used for clustering distribution or NULL when this is not possible. |
public getDistributor ( ) : Predis\Cluster\Distributor\DistributorInterface | ||
return | Predis\Cluster\Distributor\DistributorInterface |
public getSlotByKey ( string $key ) : integer | ||
$key | string | Key string. |
return | integer |