Created a cache class to provide a simple non-persistent memory cache