PHP Class Predis\Cluster\Distributor\KetamaRing

Author: Daniele Alessandri ([email protected])
Author: Lorenzo Castelli ([email protected])
Inheritance: extends HashRing
Afficher le fichier Open project: tillkruss/redis-object-cache

Méthodes publiques

Méthode Description
__construct ( mixed $nodeHashCallback = null )
hash ( $value )

Méthodes protégées

Méthode Description
addNodeToRing ( &$ring, $node, $totalNodes, $replicas, $weightRatio )
wrapAroundStrategy ( $upper, $lower, $ringKeysCount )

Method Details

__construct() public méthode

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

addNodeToRing() protected méthode

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

hash() public méthode

public hash ( $value )

wrapAroundStrategy() protected méthode

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