0
0
Redisquery~10 mins

DEL and UNLINK for deletion 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 delete a key named 'user:1' using the DEL command.

Redis
DEL [1]
Drag options to blanks, or click blank then click option'
A'user:1'
Buser1
C"user:1"
Duser:1
Attempts:
3 left
💡 Hint
Common Mistakes
Quoting the key name causes a syntax error.
Using an incorrect key name.
2fill in blank
medium

Complete the code to delete multiple keys 'temp1' and 'temp2' using DEL.

Redis
DEL [1]
Drag options to blanks, or click blank then click option'
Atemp1 temp2
B'temp1', 'temp2'
C'temp1' 'temp2'
D"temp1" "temp2"
Attempts:
3 left
💡 Hint
Common Mistakes
Using commas between keys causes errors.
Quoting keys improperly.
3fill in blank
hard

Fix the error in the code to asynchronously delete the key 'cache:data' using UNLINK.

Redis
UNLINK [1]
Drag options to blanks, or click blank then click option'
A"cache:data"
Bcache:data
C'cache:data'
Dcache_data
Attempts:
3 left
💡 Hint
Common Mistakes
Quoting the key name.
Using underscores instead of colons in key names.
4fill in blank
hard

Fill both blanks to delete keys 'session1' and 'session2' asynchronously using UNLINK.

Redis
UNLINK [1] [2]
Drag options to blanks, or click blank then click option'
A'session1'
B'session2'
Csession2
Dsession1
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around keys.
Using commas.
5fill in blank
hard

Fill all three blanks to delete keys 'tempA', 'tempB', and 'tempC' synchronously using DEL.

Redis
DEL [1] [2] [3]
Drag options to blanks, or click blank then click option'
A'tempA'
BtempC
CtempB
DtempA
Attempts:
3 left
💡 Hint
Common Mistakes
Including keys not in the list.
Using quotes inconsistently.