Allowing more extension of the Cache Provider

https://github.com/doctrine/common/pull/196
https://github.com/doctrine/common/commit/b71b6b8160033f451bde765c4bb147d3dabf74d3


This was in before, not sure what happened to it. Would be nice to have again, for the same reasons the other guy had