Php apc_fetch all ids

Is there a way to get and print all the data stored in apc storage?

I need to do this for testing and debugging.

I know that I can get certain data by doing apc_fetch(id) , but I don’t know how to extract all the data by passing (as an example) a *

+8
php caching apc outputcache
source share
4 answers

Yes, you can get this with APCIterator . This allows you to iterate over all items stored in APC.

 $iter = new APCIterator('user'); foreach ($iter as $item) { echo $item['key'] . ': ' . $item['value']; } 
+12
source share

apc_cache_info () may be what you are looking for

+2
source share

The APCIterator class may be what you are looking for.

+1
source share

The APC extension is not installed on your APache.

so download APc based on your version of PHP and install it.

http://downloads.php.net/pierre/

if you need installation. read here.

http://kvcodes.com/2014/06/solution-call-undefined-function-apc_fetch/

-2
source share

All Articles