topthink/cache-bridge

PSR-16 到 PSR-6 的转换桥接器

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

This package is auto-updated.

Last update: 2024-08-29 05:15:01 UTC


README

这是一个将 PSR-16 缓存实现转换为 PSR-6 的桥接器。

安装

composer require topthink/cache-bridge

使用

您需要将现有的 PSR-16 缓存对象作为构造函数参数传递给桥接器。

$simpleCache = new SimpleCache();
$psr6pool = new CacheBridge($simpleCache);