topthink/cache-bridge

A bridge to convert PSR-16 to PSR-6

v1.0.0 2019-10-31 13:35 UTC

This package is auto-updated.

Last update: 2024-03-29 04:11:59 UTC


README

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);