iainconnor / illuminate-to-doctrine-cache
Provides a mapping between Illuminate and Doctrine Cache components.
Installs: 1 182
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- doctrine/cache: ^1.6
- illuminate/cache: ^5.4
- illuminate/support: ^5.4
Requires (Dev)
- ext-memcached: ^3.0
- illuminate/filesystem: ^5.4
- phpunit/phpunit: ^6.2
- predis/predis: ^1.1
This package is not auto-updated.
Last update: 2025-02-02 05:09:56 UTC
README
Provides a mapping between Illuminate and Doctrine Cache components.
Installation
From composer, composer require iainconnor/illuminate-to-doctrine-cache
.
Usage
- 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
.