Skip to content

Converts PSR-6 CacheItemPool object into PSR-16 SimpleCache object

Notifications You must be signed in to change notification settings

antonsacred/simple-cache-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple cache bridge

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

About

Converts PSR-6 CacheItemPool object into PSR-16 SimpleCache object

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages