<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_list(self, key, pipeline=False):
 """Get all the value in the list stored at key. Args: key (str):
 Key where the list is stored. pipeline (bool):
 True, start a transaction block. Default false. Returns: list: values in the list ordered by list index """

        if pipeline:
            return self._pipeline.lrange(key, 0, -1)

        return self._db.lrange(key, 0, -1)