Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages