cache / void-adapter
A PSR-6 cache implementation using Void. This implementation supports tags
3.0.0
2026-08-20 01:59 UTC
Requires
- php: ^8.2
- cache/adapter-common: ^3.0
- cache/hierarchical-cache: ^2.1
- psr/cache: ^3.0
- psr/simple-cache: ^2.0 || ^3.0
Requires (Dev)
- cache/integration-tests: ^1.0@dev
- phpunit/phpunit: ^11.5
Provides
- psr/cache-implementation: 3.0
- psr/simple-cache-implementation: 2.0 || 3.0
README
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.
Installation
composer require cache/void-adapter:^3.0
Usage
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.
Contributing
Send pull requests to the main repository. Report issues on the GitHub issue tracker.