PHP » GoLang |
login |
register |
about
|
GoLang Memcached::getServerByKey
request it (301)
GoLang replacement for PHP's Memcached::getServerByKey
[edit | history]
Memcached::getServerByKey(PECL memcached >= 0.1.0) Memcached::getServerByKey — Map 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
<?php 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) } |
more
Recently updated
more
Most requested
more
Last requests
|