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: 2022-11-29 02:18:39 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