2017 © Pedro Peláez
 

symfony-bundle cache-bundle

Parizz CacheBundle

image

parizz/cache-bundle

Parizz CacheBundle

  • Wednesday, May 23, 2012
  • by bamarni
  • Repository
  • 0 Watchers
  • 3 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ParizzCacheBundle

This bundle allows you to configure cache services on top of Doctrine Common Cache :, (*1)

Using it

You can enable and use Doctrine cache drivers through your project configuration this way :, (*2)

# app/config/config.yml
parizz_cache:
    drivers:
        my_memcache:
            type: memcache
            host: localhost
            port: 11211
        # A Filsesystem driver is also available
        # (for shared hosted who cannot enable APC, Memcache, etc...)
        foo:
            type: filesystem
            path: /my/filesystem/cache/path

Then, just grab your cache service from the container :, (*3)

<?php
// Getting the Memcache driver
$cache = $container->get('parizz_cache.my_memcache_driver');

// Storing a value
$cache->save('key', 'value');

// Fetching a value
$value = $cache->fetch('key');

The Versions

23/05 2012

dev-master

9999999-dev

Parizz CacheBundle

  Sources   Download

The Requires

 

cache caching