PHP 클래스 Predis\Cluster\Distributor\KetamaRing

저자: Daniele Alessandri ([email protected])
저자: Lorenzo Castelli ([email protected])
상속: extends HashRing
파일 보기 프로젝트 열기: tillkruss/redis-object-cache

공개 메소드들

메소드 설명
__construct ( mixed $nodeHashCallback = null )
hash ( $value )

보호된 메소드들

메소드 설명
addNodeToRing ( &$ring, $node, $totalNodes, $replicas, $weightRatio )
wrapAroundStrategy ( $upper, $lower, $ringKeysCount )

메소드 상세

__construct() 공개 메소드

public __construct ( mixed $nodeHashCallback = null )
$nodeHashCallback mixed Callback returning a string used to calculate the hash of nodes.

addNodeToRing() 보호된 메소드

protected addNodeToRing ( &$ring, $node, $totalNodes, $replicas, $weightRatio )

hash() 공개 메소드

public hash ( $value )

wrapAroundStrategy() 보호된 메소드

protected wrapAroundStrategy ( $upper, $lower, $ringKeysCount )