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.

Installs: 1 186

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/iainconnor/illuminate-to-doctrine-cache

1.0.1 2018-01-22 21:03 UTC

This package is not auto-updated.

Last update: 2025-09-28 07:57:52 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.