iainconnor/illuminate-to-doctrine-cache

There is no license information available for the latest version (1.0.1) of this package.

Provides a mapping between Illuminate and Doctrine Cache components.

1.0.1 2018-01-22 21:03 UTC

This package is not auto-updated.

Last update: 2024-04-14 01:25:44 UTC


README

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.