Caching support for redis and memcached