Adding mocking for redis.