cache/simple-cache-bridge
Exposes an existing PSR-6 cache pool through the PSR-16 CacheInterface, letting you reuse one pool for both standards. Install with composer require cache/simple-cache-bridge:^2.0. Supports psr/cache 3 and psr/simple-cache 2 and 3.
This package exposes an existing PSR-6 pool through the PSR-16 CacheInterface.
composer require cache/simple-cache-bridge:^2.0
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.
Send pull requests to the main repository. Report issues on the GitHub issue tracker.
How can I help you explore Laravel packages today?