Added Redis query caching support