Added the option to set an expiration date for cache data