Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Bundle for memcached client

License

Notifications You must be signed in to change notification settings

blablacar/BlablacarMemcachedBundle

Repository files navigation

BlablacarMemcachedBundle

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.