topthink / cache-bridge
A bridge to convert PSR-16 to PSR-6
v1.0.0
2019-10-31 13:35 UTC
Requires
- psr/cache: ^1.0
- psr/simple-cache: ^1.0
This package is auto-updated.
Last update: 2024-06-29 04:52:23 UTC
README
PSR-16 to PSR-6 Bridge
This is a bridge that converts a PSR-16 cache implementation to PSR-6.
Install
composer require topthink/cache-bridge
Use
You need an existing PSR-16 cache object as a constructor argument to the bridge.
$simpleCache = new SimpleCache(); $psr6pool = new CacheBridge($simpleCache);