PHPackages                             batenburg/cache-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. batenburg/cache-bundle

ActiveLibrary[Caching](/categories/caching)

batenburg/cache-bundle
======================

A cache bundle to simplify usage of symfony cache.

v2.0.7(5y ago)06.7k1MITPHPPHP &gt;= 7.2.0

Since Jan 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/batenburg/caching-bundle)[ Packagist](https://packagist.org/packages/batenburg/cache-bundle)[ RSS](/packages/batenburg-cache-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (6)Versions (20)Used By (0)

Caching Bundle
==============

[](#caching-bundle)

Caching for the Symfony Framework.

Build Status: [![Build Status](https://camo.githubusercontent.com/0eff2c856921441c2b146fa382dba665b895bded25fd1d80fc09eaf7b79a3d6e/68747470733a2f2f7472617669732d63692e636f6d2f626174656e627572672f63616368696e672d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/batenburg/caching-bundle.svg?branch=master)

What is Caching Bundle?
-----------------------

[](#what-is-caching-bundle)

The caching bundle is an repository around the Symfony Cache. Its purpose is to simplify usage of Symfony Cache.

For who?
--------

[](#for-who)

This bundle is recommended for Microservices, Domain Driven Development or the Repository Design Pattern. This bundle is not developed for usage with Doctrine ORM.

Installation
------------

[](#installation)

Install with composer:

```
composer require batenburg/cache-bundle

```

Register the bundle, add the following line to `config/bundles.php`:

```
    Batenburg\CacheBundle\CacheBundle::class => ['all' => true],

```

Usage
-----

[](#usage)

After the installation is completed, the CacheRepositoryInterface can be resolved by dependency injection. Or through the container. It is highly recommended to use dependency injection.

An example::

```
