How to understand this paragraph in the python redis source code?

    if len(response) != len(commands):
        self.connection.disconnect()
        raise ResponseError("Wrong number of response items from "
                            "pipeline execution")
                            

under what circumstances, the lengths of response and commands are not the same. Find the answer
line 3351 of redis/client.py source code

Apr.12,2022

the simplest scenario is that the data returned by the server is returned multiple times, so the length will be inconsistent

Menu