Added memory cache
Example now using memory cache
Refactored the Cache