cache/doctrine-adapter
This package adapts legacy Doctrine\Common\Cache implementations to PSR-6 and PSR-16, letting existing Doctrine caches work with modern cache pools. Version 3 changes the tagged-item format, so drain workers and clear the cache before upgrading or rolling back.
This package adapts a legacy Doctrine\Common\Cache\Cache implementation to PSR-6 and PSR-16.
Use the PSR-6 Doctrine bridge when a legacy library needs Doctrine Cache and your application already has a PSR-6 pool.
composer require cache/doctrine-adapter:^3.0
Pass an existing Doctrine Cache implementation to the pool:
use Cache\Adapter\Doctrine\DoctrineCachePool;
use Doctrine\Common\Cache\Cache;
function createPool(Cache $doctrineCache): DoctrineCachePool
{
return new DoctrineCachePool($doctrineCache);
}
Doctrine Cache 2.x provides the legacy interfaces but no storage drivers. Your application must provide the concrete implementation.
Version 3 stores a generation snapshot with each tagged item and a separate marker for each tag. Version 2 workers cannot safely share this format.
Stop or drain all workers, clear the Doctrine cache, and then deploy version 3. Follow the same sequence before a rollback.
Send pull requests to the main repository. Report issues on the GitHub issue tracker.
How can I help you explore Laravel packages today?