title: How to set lifetime for doctrine result and query cache globally?
body: <p>Is it possible to set lifetime for doctrine result and query cache globally (not second level cache). I do not want do it for every query, like below: </p>
  
  <pre><code>$queryBuilder
              -&gt;getQuery()
              -&gt;useResultCache(true)
              -&gt;setQueryCacheLifetime(7 * 24 * 60 * 60)
              -&gt;setResultCacheLifetime(7 * 24 * 60 * 60)
              -&gt;getSingleScalarResult()
  </code></pre>