Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

CacheBundle

A fluent cache bundle for Symfony 2.

Installation

composer require phpfluent/cachebundle

Update the settings.yml file

services:
cache:
class: Doctrine\Common\Cache\ApcCache

Register the bundle

<?php//%/app/AppKernel.php$bundles = array(
newSymfony\Bundle\FrameworkBundle\FrameworkBundle(),
newSymfony\Bundle\TwigBundle\TwigBundle(),
newSymfony\Bundle\MonologBundle\MonologBundle(),
newSymfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
/** * Your bundles */newPHPFluent\Bundle\CacheBundle\CacheBundle(),
);

Call it from your code

$cache = $this->get('phpfluent_cache');
$cache['foo'] = 'bar'; //Cachingecho$cache['foo'];//Retrieving from the cache

About

A fluent cache bundle for Symfony 2.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages