0
0
Redisquery~10 mins

HKEYS and HVALS 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 get all field names from a Redis hash.

Redis
HKEYS [1]
Drag options to blanks, or click blank then click option'
Amystring
Bmylist
Cmyhash
Dmyset
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key that is not a hash type.
Confusing HKEYS with HVALS.
2fill in blank
medium

Complete the code to get all values from a Redis hash.

Redis
HVALS [1]
Drag options to blanks, or click blank then click option'
Auser:1000
Blist:items
Cstring:name
Dset:colors
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key that is not a hash.
Mixing up HKEYS and HVALS commands.
3fill in blank
hard

Fix the error in the command to get all field names from the hash named 'profile'.

Redis
HKEYS [1]
Drag options to blanks, or click blank then click option'
Aprofile
Bprofiles
Cprofile:1
Dprofile hash
Attempts:
3 left
💡 Hint
Common Mistakes
Adding spaces in the key name.
Using plural or different key names.
4fill in blank
hard

Fill both blanks to get all values from the hash named 'settings'.

Redis
[1] [2]
Drag options to blanks, or click blank then click option'
AHVALS
BHKEYS
Csettings
Dconfig
Attempts:
3 left
💡 Hint
Common Mistakes
Using HKEYS instead of HVALS.
Using wrong hash key names.
5fill in blank
hard

Fill all three blanks to get all field names from the hash named 'config:app'.

Redis
[1] [2]:[3]
Drag options to blanks, or click blank then click option'
AHKEYS
Bconfig
Capp
Dconfig:app
Attempts:
3 left
💡 Hint
Common Mistakes
Splitting the key incorrectly.
Using wrong commands.