GitHub - php-cache/doctrine-adapter: [READ-ONLY] PSR-6 Cache implementation using Doctrine\Common\Cache | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

php-cache/doctrine-adapter

Repository files navigation

Doctrine PSR-6 Cache pool

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

This is a PSR-6 cache implementation using Doctrine cache. It is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at www.php-cache.com.

This is a PSR-6 to Doctrine bridge. If you are interested in a Doctrine to PSR-6 bridge you should have a look at PSR-6 Doctrine Bridge.

Install

composer require cache/doctrine-adapter

Use

use Doctrine\Common\Cache\MemcachedCache;
use Cache\Adapter\Doctrine\DoctrineCachePool;


$memcached = new \Memcached();
$memcached->addServer('localhost', 11211);

// Create a instance of Doctrine's MemcachedCache
$doctrineCache = new MemcachedCache();
$doctrineCache->setMemcached($memcached);

// Wrap Doctrine's cache with the PSR-6 adapter
$pool = new DoctrineCachePool($doctrineCache);

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 Cache implementation using Doctrine\Common\Cache

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.