Added an actual cache structure to the Cache class.