sacred/simple-cache-bridge

v1.0.0 2023-01-21 08:26 UTC

This package is auto-updated.

Last update: 2024-03-21 11:06:24 UTC


README

codecov Packagist Version

This package allows you to convert your PSR-6 cache into PSR-16 simple cache.

Install

composer require sacred/simple-cache-bridge

Basic usage

use Sacred\Cached\SimpleCacheFromCacheItemPool;

$psr6Cache = new AnyPSR6CacheItemPool();
$simpleCache = new SimpleCacheFromCacheItemPool($psr6Cache);

$simpleCache->set('key','some-data');
$value = $simpleCache->get('key'); // some-data