APCu is a shared memory key-value store for PHP. The memory is shared between PHP-FPM processes of the same pool. Stored data persists between requests.
Iterating over Entries
APCUIterator allows to
iterate over entries in the cache:
The iterator can be initialized with an optional regular expression to select only entries with matching keys:
Information about a single cache entry can be obtained via:
Simple storage and retrieval
information about the store and its entries:
Note that invoking
apcu_cache_info()without limit will return the complete data currently stored.
To only get the meta data, use
To get information about certain cache entries better use