blablacar/memcached-bundle

BlaBlarCar Memcached bundle

Installs: 4 023

Dependents: 0

Stars: 1

Watchers: 4

Forks: 1

Language: PHP

v1.1.0 2015-03-10 07:59 UTC

README

Build Status

A bundle to use memcached inside your Symfony2 application

Installation

The recommended way to install this bundle is through Composer.

composer require blablacar/memcached-bundle

Update app/AppKernel.php:

public function registerBundles()
{
    $bundles = array(
        // ...
        new Blablacar\MemcachedBundle\BlablacarMemcachedBundle(),
    );

    return $bundles;
}

If you want to use the memcached session handler add the relevant config (see next section) and update your app/config/config.yml file:

framework:
    session:
        handler_id:  blablacar_memcached.session_handler

Configuration reference

blablacar_memcached:
    clients:              # Required

        # Prototype
        name:
            persistent_id:        null
            servers:              [] # Required
            options:              []
    session:
        client:               ~ # Required
        prefix:               session
        ttl:                  ~

License

Blablacar Memcached bundle is released under the MIT License. See the bundled LICENSE file for details.