sacred/simple-cache-bridge

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sacred/simple-cache-bridge

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

This package is auto-updated.

Last update: 2025-12-21 15:12:42 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