Complete the code to increase the value of the counter by 1.
INCR [1]The INCR command increases the value stored at the given key by 1. Here, the key is counter.
Complete the code to decrease the value of the counter by 1.
DECR [1]The DECR command decreases the value stored at the given key by 1. The key here is counter.
Fix the error in the code to correctly increase the counter.
INCR [1]The key name must be counter to correctly increase the counter. Using counter_value or command names causes errors.
Fill both blanks to increase and then decrease the counter.
INCR [1] DECR [2]
Both commands must use the same key counter to modify the same counter value.
Fill all three blanks to set a counter, increase it, and then get its value.
SET [1] 10 INCR [2] GET [3]
All commands must use the same key counter to set, increase, and get the counter value.