title: Doctrine 2 Result Cache
body: <p>I would like to use Doctrine 2's result cache on Zend Framework 2 project like this :</p>
  
  <pre><code>$query-&gt;useResultCache(true, 3600, 'test');
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>This is my configuration file :</p>
  
  <pre><code>&lt;?php
  return array(
      'doctrine' =&gt; array(
          'connection' =&gt; array(
              'orm_default' =&gt; array(
                  'driverClass' =&gt;'Doctrine\DBAL\Driver\PDOMySql\Driver',
                  'params' =&gt; array(
                      'host'     =&gt; 'localhost',
                      'port'     =&gt; '3306',
                      'user'     =&gt; 'root',
                      'password' =&gt; '',
                      'dbname'   =&gt; 'skeleton',
                      'charset'  =&gt; 'utf8',
                      'driverOptions' =&gt; array (1002 =&gt; 'SET NAMES utf8'),
                  )
              )
          ),
          'configuration' =&gt; array(
              'orm_default' =&gt; array(
                  'metadata_cache'    =&gt; 'array',
                  'query_cache'       =&gt; 'array',
                  'result_cache'      =&gt; 'array',
                  'driver'            =&gt; 'orm_default',
                  'generate_proxies'  =&gt; true,
                  'proxy_dir'         =&gt; 'data/DoctrineORMModule/Proxy',
                  'proxy_namespace'   =&gt; 'DoctrineORMModule\Proxy',
                  'filters'           =&gt; array()
              )
          ),
      )
  );
  </code></pre>
  
  <p><strong>So my question : What is missing in my code?</strong></p>