Added some classes to facilitate caching in redis