note 82961 added to function.apc-fetch
| From: | marcus at synchromedia dot co dot uk | Date: | Sat, 03 May 2008 16:54:30 +0000 |
| Subject: | note 82961 added to function.apc-fetch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139029@lists.php.net to get a copy of this message | ||
Just to clarify the multi-get capability, the result is returned as an array with cache keys as the
array keys. Any missing values re not returned, for example:
<?php
apc_delete('test1');
apc_delete('test2');
apc_add('test1', 'test1');
$cached = apc_fetch(array('test1', 'test2'));
var_dump($cached);
?>
gives
array(1) {
["test1"]=>
string(5) "test1"
}
If no keys are found, you get an empty array.
----
Server IP: 87.124.64.96
Probable Submitter: 87.74.30.27
----
Manual Page -- http://www.php.net/manual/en/function.apc-fetch.php
Edit -- https://master.php.net/note/edit/82961
Del: integrated -- https://master.php.net/note/delete/82961/integrated
Del: useless -- https://master.php.net/note/delete/82961/useless
Del: bad code -- https://master.php.net/note/delete/82961/bad+code
Del: spam -- https://master.php.net/note/delete/82961/spam
Del: non-english -- https://master.php.net/note/delete/82961/non-english
Del: in docs -- https://master.php.net/note/delete/82961/in+docs
Del: other reasons-- https://master.php.net/note/delete/82961
Reject -- https://master.php.net/note/reject/82961
Search -- https://master.php.net/manage/user-notes.php