| 
 
update : 2015.11.03
 
php.shukuma.com검색:
  
 | 
Memcached::getServerByKey(PECL memcached >= 0.1.0) Memcached::getServerByKey — Map a key to a server 설명
   public array Memcached::getServerByKey
    ( string  
  $server_key
   )
   Memcached::getServerByKey() returns the server that
   would be selected by a particular  인수
 
 반환값
   Returns an array containing three keys of host,
   port, and weight on success or  예제
 Example #1 Memcached::getServerByKey() example 
<?php위 예제의 출력 예시: 
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)
}
 |