Complete the code to start a Redis pipeline.
pipe = client.[1]()To send multiple commands in a pipeline, you start with client.pipeline().
Complete the code to add a SET command to the pipeline.
pipe.[1]('key1', 'value1')
To add a SET command in Redis pipeline, use pipe.set().
Fix the error in the code to execute the pipeline.
results = pipe.[1]()To send all commands in the pipeline to Redis and get results, use pipe.execute().
Fill both blanks to add two commands and execute the pipeline.
pipe.[1]('key2', 'value2') pipe.[2]('key2') results = pipe.execute()
First add a SET command, then a GET command before executing the pipeline.
Fill all three blanks to add SET, INCR, and GET commands in the pipeline.
pipe.[1]('counter', 1) pipe.[2]('counter') pipe.[3]('counter') results = pipe.execute()
First set the counter to 1, then increment it, then get its value before executing.
