title: How to use APC cache with doctrine2 after php version 5.4
body: <p>I am using APC cache for doctrine2, configured while bootstrapping:</p>
  
  <pre><code>$config = new \Doctrine\ORM\Configuration();
  
  $cache = new \Doctrine\Common\Cache\ApcCache;
  
  $config-&gt;setMetadataCacheImpl($cache);
  $config-&gt;setQueryCacheImpl($cache);
  $config-&gt;setResultCacheImpl($cache);
  </code></pre>
  
  <p>And configuration for php.ini:</p>
  
  <pre><code>[APC]
  apc.shm_size = '128M'
  apc.enabled=1
  apc.shm_segments=1
  apc.num_files_hint=0
  apc.user_entries_hint=0
  apc.ttl=0
  apc.user_ttl=7200
  apc.gc_ttl=3600
  apc.stat=1
  apc.enable_cli=0
  apc.file_update_protection=2
  apc.max_file_size=2M
  apc.cache_by_default=1
  apc.use_request_time=1
  apc.slam_defense=0
  apc.stat_ctime=0
  apc.canonicalize=1
  apc.write_lock=1
  apc.report_autofilter=0
  apc.rfc1867=0
  apc.rfc1867_prefix =upload_
  apc.rfc1867_name=APC_UPLOAD_PROGRESS
  apc.rfc1867_freq=0
  apc.rfc1867_ttl=3600
  apc.lazy_classes=0
  apc.lazy_functions=0 
  </code></pre>
  
  <p>APC cache dll extension for PHP is available upto php version 5.4
  After 5.4 an inbuilt extension is available as an opcache but how to use it with doctrine2?</p>