Well, the cache class looks very similar to the PageBundle, so yes I will prefer to have an abstracted class in the CacheBundle. I don't want to introduce a templating dependency here as the code is very simple and it will be overkill.