Complete the code to increase the value of the key 'counter' by 5.
INCRBY counter [1]The INCRBY command increases the integer value of a key by the given amount. Here, we increase 'counter' by 5.
Complete the code to decrease the value of the key 'score' by 3.
DECRBY score [1]The DECRBY command decreases the integer value of a key by the given amount. Here, we decrease 'score' by 3.
Fix the error in the code to correctly increase the key 'visits' by 7.
INCRBY visits [1]The increment value must be a positive integer. Using a string or negative number causes an error.
Fill both blanks to decrease the key 'balance' by 15 and increase the key 'debt' by 15.
DECRBY balance [1] INCRBY debt [2]
Both commands use the same amount 15 to adjust the keys correctly.
Fill all three blanks to increase 'likes' by 8, decrease 'dislikes' by 3, and increase 'comments' by 5.
INCRBY likes [1] DECRBY dislikes [2] INCRBY comments [3]
Use 8 to increase 'likes', 3 to decrease 'dislikes', and 5 to increase 'comments'.