title: How to cache in Symfony 2?
body: <p>I need to cache some application specific data using Symfony 2's caching system so that I can run <code>cache:clear</code> to clear it. All the cache relies under <code>app/cache</code> but how do I actually go about caching data?</p>
  
  <p><a href="http://symfony.com/doc/current/cookbook/index.html" rel="noreferrer">http://symfony.com/doc/current/cookbook/index.html</a></p>
  
  <p>The only topic I see is about HTML caching with Varnish.</p>