0
0
Redisquery~10 mins

How Redis achieves sub-millisecond latency - Interactive Practice

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

Complete the code to set a key with a value in Redis.

Redis
SET mykey [1]
Drag options to blanks, or click blank then click option'
AHello
B"Hello"
C123
Dnil
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes around string values
Using unsupported data types as values
2fill in blank
medium

Complete the code to retrieve the value of a key in Redis.

Redis
GET [1]
Drag options to blanks, or click blank then click option'
Akey
Bmyvalue
Cvalue
Dmykey
Attempts:
3 left
💡 Hint
Common Mistakes
Using the value instead of the key
Using a generic word instead of the actual key
3fill in blank
hard

Fix the error in the command to delete a key in Redis.

Redis
DEL [1]
Drag options to blanks, or click blank then click option'
Amyvalue
B"mykey"
Cmykey
Dkey
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around the key name
Using the value instead of the key
4fill in blank
hard

Fill both blanks to set a key with expiration time in seconds.

Redis
SET [1] [2] EX 10
Drag options to blanks, or click blank then click option'
Asession_id
B"abc123"
Cuser_token
D"xyz789"
Attempts:
3 left
💡 Hint
Common Mistakes
Putting quotes around the key name
Not quoting the string value
5fill in blank
hard

Fill all three blanks to increment a counter key by 1 and get its new value.

Redis
INCRBY [1] [2]; GET [3]
Drag options to blanks, or click blank then click option'
Apage_views
B1
Dcounter
Attempts:
3 left
💡 Hint
Common Mistakes
Using different keys for increment and get
Using a number other than 1 for increment