I need to cache some application specific data using Symfony 2\'s caching system so that I can run cache:clear
to clear it. All the cache relies under app
There is no partial cache in Symfony2, the build-in cache is full HTTP only. You have to use a reverse proxy, and if you only want to cache a piece of code, you have to use ESI. It's maybe more work than with symfony 1 but performances worth it.
Anyway, nothing stop you to use a memcached and store some stuff in it, look at this Bundle i.e. If as your question state it, you only have data to store, that's perfect (and a memcache cache is much faster than a filesystem one).