|
Memcached::getServerByKeyMap a key to a server Description
public array 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 host,
port, and weight on success or Examples
Example #1 Memcached::getServerByKey example
<?phpThe 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)
}
|