2017 © Pedro Peláez
 

library symfony-http-cache-extension

image

bamarni/symfony-http-cache-extension

  • Sunday, May 12, 2013
  • by bamarni
  • Repository
  • 1 Watchers
  • 7 Stars
  • 2,469 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Build Status, (*1)

EXPERIMENTAL (WIP)

Some stores + custom http_cache, (*2)

Http Cache Doctrine Store

Store implementation for Symfony HttpCache relying on Doctrine Cache., (*3)

Instructions

Install the package

Add the following dependency to your composer.json file: ``` json { "require": { "_some_packages": "...",, (*4)

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

}, (*5)


### Edit your project's HttpCache Configure a Doctrine Cache driver and pass it to a DoctrineStore : ``` php <?php // 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; $driver->setMemcache($memcache); // or APC //$driver = new ApcCache; return new DoctrineStore($driver); } }

The Versions

12/05 2013

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires