title: how to use Memcache with symfony
body: <p>I  using symfony 2 and I want to use Memcache with it but the problem is I can't find any explain for Memcache I just found for memcached so are they the same setup steps ? I added this lines to install Memcache on symfony? </p>
  
  <p>config.yml</p>
  
  <pre><code>framework:
    session:
      handler_id: session.handler.memcached
  </code></pre>
  
  <p>for parameters.yml</p>
  
  <pre><code>parameters:   
    memcached_host: 127.0.0.1
    memcached_port: 11211
    memcached_prefix: custom_key_
    memcached_expire: 14400
  </code></pre>
  
  <p>services.yml</p>
  
  <pre><code>services:
    session.handler.memcached:
      class: Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler
      arguments: [ "@session.memcached", { prefix: '%memcached_prefix%', expiretime: '%memcached_expire%' } ]
  
  
  services:
    session.memcached:
      class: Memcached
      arguments:
        persistent_id: %memcached_prefix%
      calls:
        - [ addServer, [ %memcached_host%, %memcached_port% ]]
  
  
  
  services:
    session.memcached:
      class: Madisoft\AppBundle\Utils\MemcachedWrapper
      arguments:
        persistent_id: '%memcached_prefix%'
      calls:
        - [ addServer, [ '%memcached_host%', '%memcached_port%' ] ]
  </code></pre>