|
Memcached::getServerByKeyMap a key to a server Description
public arrayfalse Memcached::getServerByKey(string
$server_key )
Memcached::getServerByKey returns the server that
would be selected by a particular Parameters
Return Values
Returns an array containing three keys of Examples
Example #1 Memcached::getServerByKey example
The above example will output something similar to: array(3) { ["host"]=> string(15) "mem3.domain.com" ["port"]=> int(11211) ["weight"]=> int(20) } array(3) { ["host"]=> string(15) "mem2.domain.com" ["port"]=> int(11211) ["weight"]=> int(40) } array(3) { ["host"]=> string(15) "mem2.domain.com" ["port"]=> int(11211) ["weight"]=> int(40) } |