0
0
Redisquery~10 mins

HEXISTS for field check 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 check if the field 'name' exists in the hash 'user:1000'.

Redis
HEXISTS user:1000 [1]
Drag options to blanks, or click blank then click option'
Aaddress
Bage
Cname
Demail
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong field name will return 0 even if the hash exists.
Confusing the hash key with the field name.
2fill in blank
medium

Complete the code to check if the field 'email' exists in the hash 'user:2000'.

Redis
HEXISTS [1] email
Drag options to blanks, or click blank then click option'
Auser:1000
Buser:2000
Cuser:3000
Duser:4000
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong user key will cause the check to fail.
Swapping the field and key arguments.
3fill in blank
hard

Fix the error in the command to check if the field 'phone' exists in the hash 'contact:500'.

Redis
HEXISTS contact:500 [1]
Drag options to blanks, or click blank then click option'
Aphone
Bphones
Cphone_number
Dcontact
Attempts:
3 left
💡 Hint
Common Mistakes
Using a similar but incorrect field name.
Adding extra words or underscores.
4fill in blank
hard

Fill both blanks to check if the field 'status' exists in the hash 'order:1234'.

Redis
HEXISTS [1] [2]
Drag options to blanks, or click blank then click option'
Aorder:1234
Buser:1234
Cstatus
Dstate
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the hash key and field.
Using incorrect field or key names.
5fill in blank
hard

Fill all three blanks to check if the field 'price' exists in the hash 'product:789' using the Redis CLI command.

Redis
[1] [2] [3]
Drag options to blanks, or click blank then click option'
AHEXISTS
Bproduct:789
Cprice
DHGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using HGET instead of HEXISTS.
Swapping the order of arguments.