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