cache/void-adapter
PSR-6 “void” (null/blackhole) cache pool that never stores anything and always returns empty cache items. Useful for disabling caching in tests or no-op environments. Part of the PHP-Cache organization.
This package provides PSR-6 and PSR-16 cache implementations that never retain values. Reads always miss, while writes and deletions succeed.
Use this adapter when an application requires a cache interface but caching must remain disabled.
composer require cache/void-adapter:^3.0
use Cache\Adapter\Void\VoidCachePool;
$pool = new VoidCachePool();
Version 3 requires cache/adapter-common 3. The pool retains no cache data, so an upgrade does not require a cache clear.
Send pull requests to the main repository. Report issues on the GitHub issue tracker.
How can I help you explore Laravel packages today?