Méthode | Description | |
---|---|---|
addServer ( $host, $path = "", $weight = 1, $timeout = 1 ) | consistent hashing | |
addServers ( array $servers ) | ||
getServer ( $key ) | ||
init ( $params = [] ) |
Méthode | Description | |
---|---|---|
_sort ( $a, $b ) | ||
hash ( $str ) |
public static addServer ( $host, $path = "", $weight = 1, $timeout = 1 ) |