added redis caching to view class