Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Roave/DoctrineSimpleCache

Doctrine Cache adapter for PSR-16 Simple Cache
https://github.com/Roave/DoctrineSimpleCache

Last synced: 3 months ago
JSON representation

Doctrine Cache adapter for PSR-16 Simple Cache

Awesome Lists containing this project

README

        

# Doctrine SimpleCache adapter

[![Build Status](https://travis-ci.org/Roave/DoctrineSimpleCache.svg?branch=master)](https://travis-ci.org/Roave/DoctrineSimpleCache)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/roave/doctrine-simplecache/v/stable)](https://packagist.org/packages/roave/doctrine-simplecache)
[![License](https://poser.pugx.org/roave/doctrine-simplecache/license)](https://packagist.org/packages/roave/doctrine-simplecache)

[PSR-16 SimpleCache](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md)
implementation that accepts a Doctrine Cache and adapts it for the PSR-16 standards.

## Installation

This will install `doctrine/cache` if not already installed.

```bash
$ composer require roave/doctrine-simplecache
```

## Usage

Create your Doctrine Cache the usual way and inject it into `SimpleCacheAdapter`, for example:

```php