A generic cache module for in memory caching of data