Skip to content

iainconnor/illuminate-to-doctrine-cache

Repository files navigation

Illuminate To Doctrine Cache

Provides a mapping between Illuminate and Doctrine Cache components.

Illuminate To Doctrine Cache

Installation

From composer, composer require iainconnor/illuminate-to-doctrine-cache.

Usage

  1. Configure your Illuminate cache as normal in Laravel or Lumen.
  2. Add \IainConnor\IlluminateToDoctrineCache\IlluminateToDoctrineCacheServiceProvider in Laravel or Lumen.
  3. Fetch \IainConnor\IlluminateToDoctrineCache\IlluminateToDoctrineCacheFactory from the service container.
  4. Call the getDoctrineCacheForIlluminateCache() method to get an instance of \Doctrine\Common\Cache\Cache for your configured Illuminate cache.
  5. 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 are redis, memcached, file, array and apc.

About

Provides a mapping between Illuminate and Doctrine Cache components.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages