Refactor query cache to make use of the new caching framework features
Database API (Doctrine DBAL)
The caching framework has been streamlined. Registering caches for extensions and fetching the cache is much easier now.
Refactor the query cache handling to reflect this change.