cache/apcu-adapter
PSR-6 cache pool adapter backed by APCu from the PHP Cache organization. Drop-in cache implementation with no configuration required—instantiate ApcuCachePool and start caching. Supports shared PHP-Cache features like tagging and hierarchy via docs.
This package provides PSR-6 and PSR-16 cache implementations backed by APCu. The pool also supports tags.
Install the package and enable the APCu extension:
composer require cache/apcu-adapter:^3.0
use Cache\Adapter\Apcu\ApcuCachePool;
$pool = new ApcuCachePool();
Version 3 stores a generation snapshot with each tagged item and a separate marker for each tag. Version 2 workers cannot safely share this format.
Stop all workers, clear APCu, and then deploy version 3. Follow the same sequence before a rollback.
Version 2 stores native arrays instead of serialized strings. Older workers cannot read entries written by version 2.
Stop all workers, clear APCu, and then deploy version 2. Follow the same sequence before a rollback.
Send pull requests to the main repository. Report issues on the GitHub issue tracker.
How can I help you explore Laravel packages today?