cache / simple-cache-bridge
A PSR-6 bridge to PSR-16. This will make any PSR-6 cache compatible with SimpleCache.
2.0.4
2026-08-20 01:59 UTC
Requires
- php: ^8.2
- psr/cache: ^3.0
- psr/simple-cache: ^2.0 || ^3.0
Requires (Dev)
- cache/array-adapter: ^3.0
- cache/integration-tests: ^1.0@dev
- cache/namespaced-cache: ^2.0
- cache/prefixed-cache: ^2.0
- mockery/mockery: ^1.6
- phpunit/phpunit: ^11.5
- symfony/cache: ^7.4 || ^8.0
Provides
- psr/simple-cache-implementation: 2.0 || 3.0
README
This package exposes an existing PSR-6 pool through the PSR-16 CacheInterface.
Installation
composer require cache/simple-cache-bridge:^2.0
Usage
use Cache\Adapter\PHPArray\ArrayCachePool; use Cache\Bridge\SimpleCache\SimpleCacheBridge; $pool = new ArrayCachePool(); $cache = new SimpleCacheBridge($pool);
Version 2 implements psr/cache 3 and supports psr/simple-cache 2 and 3.
Contributing
Send pull requests to the main repository. Report issues on the GitHub issue tracker.