|
Memcached::getDelayedRequest multiple items Description
public bool Memcached::getDelayed
( array
$keys
[, bool $with_cas
[, callable $value_cb
]] )
Memcached::getDelayed issues a request to memcache for
multiple items the keys of which are specified in the
Instead of fetching the results explicitly, you can specify a result callback via
Parameters
Return Values
Returns Examples
Example #1 Memcached::getDelayed example
<?phpThe above example will output:
array(2) {
[0]=>
array(3) {
["key"]=>
string(3) "int"
["value"]=>
int(99)
["cas"]=>
float(2363)
}
[1]=>
array(3) {
["key"]=>
string(5) "array"
["value"]=>
array(2) {
[0]=>
int(11)
[1]=>
int(12)
}
["cas"]=>
float(2365)
}
}
See Also
|