Is there a way to fetch and print, all the data stored in apc's storage?
I need to do so for testing and debugging purposes.
I know I can retrieve a specific data by doing apc_fetch(id)
, but I don't know any way to retrieve all the data by passing (as an example) a *
Yes, you can get this with APCIterator
. This allows you to loop through all the items stored with APC.
$iter = new APCIterator('user');
foreach ($iter as $item) {
echo $item['key'] . ': ' . $item['value'];
}
apc_cache_info() might be what you're looking for
The APCIterator class might be what you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With