GitHub - php-cache/doctrine-bridge: [READ-ONLY] PSR-6 Doctrine Bridge | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

php-cache/doctrine-bridge

Repository files navigation

PSR 6 Doctrine Bridge

Gitter Latest Stable Version codecov.io Total Downloads Monthly Downloads Software License

This library provides a PSR-6 compliant bridge between Doctrine and a Cache Pool. The bridge implements the Doctrine\Common\Cache\Cache interface. This is useful for projects that require an implementation of Doctrine\Common\Cache\Cache, but you still want to use a PSR-6 implementation.

Install

composer require cache/psr-6-doctrine-bridge

Usage

use Cache\Bridge\Doctrine\DoctrineCacheBridge;

// Assuming $pool is an instance of \Psr\Cache\CacheItemPoolInterface
$cacheProvider = new DoctrineCacheBridge($pool);

$cacheProvider->contains($key);
$cacheProvider->fetch($key);
$cacheProvider->save($key, $value, $ttl);
$cacheProvider->delete($key);

// Also, if you need it:
$cacheProvider->getPool(); // same as $pool

Contribute

Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.

About

[READ-ONLY] PSR-6 Doctrine Bridge

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

Languages

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.