0
0
Redisquery~10 mins

MULTI command to start in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a Redis transaction using MULTI.

Redis
[1]
Drag options to blanks, or click blank then click option'
ADISCARD
BEXEC
CWATCH
DMULTI
Attempts:
3 left
💡 Hint
Common Mistakes
Using EXEC instead of MULTI to start the transaction.
Using WATCH which is for monitoring keys, not starting transactions.
2fill in blank
medium

Complete the code to queue a command inside a Redis transaction after starting MULTI.

Redis
MULTI
SET mykey [1]
Drag options to blanks, or click blank then click option'
AWATCH
BEXEC
Cmyvalue
DGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using EXEC or WATCH as the value argument.
Using GET which is a command, not a value.
3fill in blank
hard

Fix the error in the code to properly execute the queued commands in a Redis transaction.

Redis
MULTI
SET key1 value1
[1]
Drag options to blanks, or click blank then click option'
AEXEC
BDISCARD
CMULTI
DWATCH
Attempts:
3 left
💡 Hint
Common Mistakes
Using MULTI again instead of EXEC to execute.
Using DISCARD which cancels the transaction.
4fill in blank
hard

Fill both blanks to start a transaction and watch a key for changes before queuing commands.

Redis
[1] mykey
[2]
Drag options to blanks, or click blank then click option'
AWATCH
BEXEC
CMULTI
DDISCARD
Attempts:
3 left
💡 Hint
Common Mistakes
Starting MULTI before WATCH.
Using EXEC or DISCARD instead of MULTI to start the transaction.
5fill in blank
hard

Fill all three blanks to watch a key, start a transaction, and discard it if needed.

Redis
[1] mykey
[2]
[3]
Drag options to blanks, or click blank then click option'
AWATCH
BMULTI
CDISCARD
DEXEC
Attempts:
3 left
💡 Hint
Common Mistakes
Using EXEC instead of DISCARD to cancel.
Starting MULTI before WATCH.