PHP » GoLang |
login |
register |
about
|
GoLang Memcached::getMulti
request it (564)
GoLang replacement for PHP's Memcached::getMulti
[edit | history]
Memcached::getMulti(PECL memcached >= 0.1.0) Memcached::getMulti — Retrieve multiple items Description
Memcached::getMulti() is similar to
Memcached::get(), but instead of a single key
item, it retrieves multiple items the keys of which are specified in the
The Parameters
Return Values
Returns the array of found items or Examples
Example #1 Memcached::getMulti() example for Memcached v3
<?phpThe above example will output something similar to:
array(2) {
["key1"]=>
string(6) "value1"
["key3"]=>
string(6) "value3"
}
Example #2 Memcached::getMulti() example for Memcached v1 and v2
<?phpThe above example will output something similar to:
array(2) {
["key1"]=>
string(6) "value1"
["key3"]=>
string(6) "value3"
}
array(2) {
["key1"]=>
float(2360)
["key3"]=>
float(2362)
}
Example #3
<?phpThe above example will output something similar to: foo foo-data bar bar-data baz baz-data lol lol-data kek kek-data zoo
Example #4
<?phpThe above example will output something similar to: foo foo-data bar bar-data baz baz-data lol lol-data kek kek-data zoo Changelog
See Also
|
more
Most requested
more
Last requests
|