|
Memcached::getMultiRetrieve multiple items Description
public arrayfalse Memcached::getMulti(array
$keys , int $get_flags = 0)
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 Changelog
Examples
Example #1 Memcached::getMulti example for Memcached v3
The 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
The 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
The 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
The above example will output something similar to: foo foo-data bar bar-data baz baz-data lol lol-data kek kek-data zoo See Also
|