Complete the code to increment the field 'score' by 1 in the hash 'player1'.
HINCRBY player1 score [1]The HINCRBY command increments the numeric value of a field in a hash by the given integer. Here, we want to increase 'score' by 1.
Complete the code to decrease the field 'lives' by 2 in the hash 'game_stats'.
HINCRBY game_stats lives [1]To decrease a numeric field, use a negative number with HINCRBY. Here, we subtract 2 from 'lives'.
Fix the error in the command to increment 'points' by 5 in the hash 'user1'.
HINCRBY user1 points [1]The increment value must be an integer without quotes. Using '5' or 'five' causes errors. Use 5 as a number.
Fill both blanks to increment 'score' by 10 and decrement 'lives' by 1 in the hash 'player2'.
HINCRBY player2 score [1] HINCRBY player2 lives [2]
Use 10 to increase 'score' and -1 to decrease 'lives'. Both are valid increments for HINCRBY.
Fill all three blanks to increment 'coins' by 15, decrement 'health' by 5, and increment 'level' by 2 in the hash 'game_data'.
HINCRBY game_data coins [1] HINCRBY game_data health [2] HINCRBY game_data level [3]
Increment 'coins' by 15, decrement 'health' by 5 (negative number), and increment 'level' by 2 using HINCRBY.