There is no license information available for the latest version (dev-master) of this package.

dev-master 2013-05-12 13:25 UTC

This package is auto-updated.

Last update: 2024-05-05 21:51:04 UTC


Build Status


Some stores + custom http_cache

Http Cache Doctrine Store

Store implementation for Symfony HttpCache relying on Doctrine Cache.


Install the package

Add the following dependency to your composer.json file:

    "require": {
        "_some_packages": "...",

        "bamarni/symfony-http-cache-extension": "*"

Edit your project's HttpCache

Configure a Doctrine Cache driver and pass it to a DoctrineStore :

// app/AppCache.php

use Bamarni\HttpCache\HttpCache;
use Bamarni\HttpCache\Store\DoctrineStore;
//use Doctrine\Common\Cache\ApcCache;
use Doctrine\Common\Cache\MemcacheCache;

class AppCache extends HttpCache
    public function createStore()
        // Memcache
        $memcache = new \Memcache;
        $memcache->connect('localhost', 11211);
        $driver = new MemcacheCache;

        // or APC
        //$driver = new ApcCache;

        return new DoctrineStore($driver);