gollumsf/cache-bundle

Add very simple cache service for (File, Apc, Apcu, Memcached, Redis...)

dev-master 2018-02-14 04:49 UTC

This package is auto-updated.

Last update: 2024-11-29 04:52:20 UTC


README

Build Status License Latest Stable Version Latest Unstable Version

Installation:

Composer

composer require gollumsf/cache-bundle

AppKernel.php

class AppKernel extends Kernel {
	
	public function registerBundles() {
		
		$bundles = [
			
			// [...] //
			
			new GollumSF\CoreBundle\GollumSFCacheBundle(),
			
			// [...] // 
		}
	}
}

config.yml

gollum_sf_cache:
    

Usages:

$cache = $container->get('gsf_cache.cache')
$cache->set('key', 'Hello World');
echo $cache->get('key'); // Display: Hello World