0
0
Redisquery~10 mins

HGETALL for all fields 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 fields and values from the hash named 'user:1'.

Redis
HGETALL [1]
Drag options to blanks, or click blank then click option'
Auser:1
Buser1
Cuser
Duser_1
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the colon ':' in the key name.
Using a wrong key name like 'user1' or 'user_1'.
2fill in blank
medium

Complete the code to retrieve all fields and values from the hash stored at key 'session:42'.

Redis
HGETALL [1]
Drag options to blanks, or click blank then click option'
Asession-42
Bsession42
Csession_42
Dsession:42
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'session42' without colon.
Using underscores or dashes instead of colon.
3fill in blank
hard

Fix the error in the command to get all fields and values from the hash 'config:app'.

Redis
HGETALL [1]
Drag options to blanks, or click blank then click option'
Aconfig.app
Bconfig-app
Cconfig:app
Dconfig_app
Attempts:
3 left
💡 Hint
Common Mistakes
Replacing colon with dot or dash.
Using underscore instead of colon.
4fill in blank
hard

Fill both blanks to retrieve all fields and values from the hash with key 'profile:100'.

Redis
[1] [2]
Drag options to blanks, or click blank then click option'
AHGETALL
Bprofile:100
Cprofile_100
DHGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'HGET' instead of 'HGETALL'.
Using 'profile_100' instead of 'profile:100'.
5fill in blank
hard

Fill both blanks to get all fields and values from the hash 'settings:theme'.

Redis
[1] [2]
Drag options to blanks, or click blank then click option'
AHGETALL
Bsettings:theme
Csettings_theme
DHGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'HGET' instead of 'HGETALL'.
Using 'settings_theme' instead of 'settings:theme'.