Added a persistent version of the Cache class