Complete the code to start a Redis transaction.
redis_client.[1]()The MULTI command starts a transaction block in Redis, ensuring atomicity.
Complete the code to execute all commands in the Redis transaction atomically.
redis_client.[1]()The EXEC command executes all queued commands in the transaction atomically.
Fix the error in the code to discard a Redis transaction.
redis_client.[1]()The DISCARD command cancels the transaction, discarding all queued commands.
Fill both blanks to watch a key and then start a transaction in Redis.
redis_client.[1]('mykey') redis_client.[2]()
WATCH monitors the key for changes, and MULTI starts the transaction.
Fill all three blanks to watch a key, start a transaction, and execute it in Redis.
redis_client.[1]('session') redis_client.[2]() redis_client.[3]()
First, WATCH the key, then MULTI starts the transaction, and EXEC executes it atomically.
