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