code: def setup(self, redis_conn=None, host='localhost', port=6379):
          '''
          Set up the redis connection
          '''
          if redis_conn is None:
              if host is not None and port is not None:
                  self.redis_conn = redis.Redis(host=host, port=port)
              else:
                  raise Exception("Please specify some form of connection "
                                      "to Redis")
          else:
              self.redis_conn = redis_conn
  
          self.redis_conn.info(f setup(self, redis_conn=None, host='localhost', port=6379):
          '''
          Set up the redis connection
          '''
          if redis_conn is None:
              if host is not None and port is not None:
                  self.redis_conn = redis.Redis(host=host, port=port)
              else:
                  raise Exception("Please specify some form of connection "
                                      "to Redis")
          else:
              self.redis_conn = redis_conn
  
          self.redis_conn.info()
docs: Set up the redis connection