It's done in Doctrine it self (almost in every provider, AFAIR only `ArrayCache` don't support it).