Added redis cache support for class APIs