Provides a mapping between Illuminate and Doctrine Cache components.
From composer, composer require iainconnor/illuminate-to-doctrine-cache
.
- Configure your Illuminate cache as normal in Laravel or Lumen.
- Add
\IainConnor\IlluminateToDoctrineCache\IlluminateToDoctrineCacheServiceProvider
in Laravel or Lumen. - Fetch
\IainConnor\IlluminateToDoctrineCache\IlluminateToDoctrineCacheFactory
from the service container. - Call the
getDoctrineCacheForIlluminateCache()
method to get an instance of\Doctrine\Common\Cache\Cache
for your configured Illuminate cache. - Be sure to catch and handle
\IainConnor\IlluminateToDoctrineCache\NoMatchingCacheException
, which will be thrown if no matching Doctrine cache can be found for your Illuminate cache.
Currently supported Illuminate cache drivers areredis
,memcached
,file
,array
andapc
.