gollumsf / cache-bundle
Add very simple cache service for (File, Apc, Apcu, Memcached, Redis...)
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5
- symfony/framework-bundle: >=2.7
This package is auto-updated.
Last update: 2024-11-29 04:52:20 UTC
README
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