2017 © Pedro Peláez
 

library laravel-doctrine-cache

Doctrine Cache Factory for Laravel 5

image

kozz/laravel-doctrine-cache

Doctrine Cache Factory for Laravel 5

  • Wednesday, May 20, 2015
  • by urakozz
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4,491 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 16 % Grown

The README.md

Laravel Docrtine Cache Proxy

Build Status Code Climate Test Coverage Latest Stable Version Latest Unstable Version License, (*1)

Laravel Proxy to Doctrine Cache, (*2)

When to use

LaravelDoctrineCache implements Doctrine\Common\Cache\Cache interface so it's fully compatible with all libraries that are requiring Doctrine Cache such as:, (*3)

  • Doctrine Annotation Reader
  • Symfony Validator
  • JMS Serializer

How does it work

LaravelDoctrineCache is using cache from app container : Container::getInstance()->offsetGet('cache') and points Doctrine\Common\Cache\Cache methods to suitable Laravel Cache methods, (*4)

Examples

#JMS\Serializer
$serializer = \JMS\Serializer\SerializerBuilder::create()
  ->setAnnotationReader(new CachedReader(new AnnotationReader(), new LaravelDoctrineCache()))
  ->build();

Reference

Methods, (*5)

fetch($id) - Fetches an entry from the cache, (*6)

contains($id) - Test if an entry exists in the cache, (*7)

save($id, $data, $lifeTime = false) - Puts data into the cache, (*8)

delete($id) - Deletes a cache entry, (*9)

The Versions

20/05 2015

dev-master

9999999-dev https://github.com/urakozz/php-laravel-doctrine-cache

Doctrine Cache Factory for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel cache doctrine

20/05 2015

1.0.0

1.0.0.0 https://github.com/urakozz/php-laravel-doctrine-cache

Doctrine Cache Factory for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel cache doctrine