|
Memcached::getServerByKeyMap a key to a server Beschreibung
public array Memcached::getServerByKey
( string
$server_key
)
Memcached::getServerByKey returns the server that
would be selected by a particular Parameter-Liste
Rückgabewerte
Returns an array containing three keys of host,
port, and weight on success or Beispiele
Beispiel #1 Memcached::getServerByKey example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
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)
}
|