2017 © Pedro Peláez
 

library doctrine-simplecache

Doctrine Cache adapter for PSR-16 Simple Cache

image

roave/doctrine-simplecache

Doctrine Cache adapter for PSR-16 Simple Cache

  • Tuesday, January 30, 2018
  • by asgrim
  • Repository
  • 12 Watchers
  • 44 Stars
  • 15,049 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 10 Versions
  • 56 % Grown

The README.md

Doctrine SimpleCache adapter

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version License, (*1)

PSR-16 SimpleCache implementation that accepts a Doctrine Cache and adapts it for the PSR-16 standards., (*2)

Installation

This will install doctrine/cache if not already installed., (*3)

$ composer require roave/doctrine-simplecache

Usage

Create your Doctrine Cache the usual way and inject it into SimpleCacheAdapter, for example:, (*4)

<?php

namespace App;

use Psr\Container\ContainerInterface;
use Psr\SimpleCache\CacheInterface as PsrCacheInterface;
use Roave\DoctrineSimpleCache\SimpleCacheAdapter;
use Doctrine\Common\Cache\RedisCache;

final class MyCacheFactory
{
    public function __invoke(ContainerInterface $container) : PsrCacheInterface
    {
        return new SimpleCacheAdapter(new RedisCache());
    }
}

Upgrade Guide

BC Breaks in 2.0

  • Support for MultiOperationCache added, includes support for deleteMultiple in Doctrine 1.7 breaks:
    • CacheException static constructors fromNonMultiGetCache and fromNonMultiPutCache have been replaced with fromNonMultiOperationCache.
    • SimpleCacheAdapter now requires an adapter implementing MultiOperationCache, and no longer specifically requires a cache implementing MultiGetCache or MultiPutCache explicitly.

The Versions

30/01 2018
30/01 2018

dev-feature/correct-exception-message-when-creating-with-non-clearable-cache

dev-feature/correct-exception-message-when-creating-with-non-clearable-cache

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires

29/01 2018

dev-enable-support-for-php72

dev-enable-support-for-php72

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires

14/09 2017

2.0.0

2.0.0.0

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires

29/08 2017

dev-support-doctrine-delete-multiple

dev-support-doctrine-delete-multiple

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires

20/01 2017

1.1.0

1.1.0.0

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires

05/01 2017

1.0.1

1.0.1.0

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires

03/01 2017

1.0.0

1.0.0.0

Doctrine Cache adapter for PSR-16 Simple Cache

  Sources   Download

MIT

The Requires

 

The Development Requires