PHP 인터페이스 Predis\Cluster\StrategyInterface

This is mostly useful to support clustering via client-side sharding.
저자: Daniele Alessandri ([email protected])
파일 보기 프로젝트 열기: tillkruss/redis-object-cache 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getDistributor() 공개 메소드

Returns a distributor instance to be used by the cluster.
public getDistributor ( ) : Predis\Cluster\Distributor\DistributorInterface
리턴 Predis\Cluster\Distributor\DistributorInterface

getSlot() 공개 메소드

Returns a slot for the given command used for clustering distribution or NULL when this is not possible.
public getSlot ( Predis\Command\CommandInterface $command ) : integer
$command Predis\Command\CommandInterface Command instance.
리턴 integer

getSlotByKey() 공개 메소드

Returns a slot for the given key used for clustering distribution or NULL when this is not possible.
public getSlotByKey ( string $key ) : integer
$key string Key string.
리턴 integer