Complete the code to add a member with a score to a sorted set in Redis.
ZADD myset 10 [1]
The command ZADD myset 10 memberA adds the member memberA with score 10 to the sorted set myset.
Complete the code to retrieve members from the sorted set ordered by score ascending.
ZRANGE myset 0 [1]
The command ZRANGE myset 0 -1 returns all members from the sorted set myset ordered by score from lowest to highest.
Fix the error in the command to add a member with score 15 to the sorted set.
ZADD myset 15 [1]
The correct syntax is ZADD myset score member. So the member name should be after the score.
Fill both blanks to retrieve members with scores between 5 and 20 inclusive.
ZRANGEBYSCORE myset [1] [2]
The command ZRANGEBYSCORE myset 5 20 returns members with scores from 5 to 20 inclusive.
Fill all three blanks to increment the score of 'memberA' by 5 in the sorted set.
ZINCRBY [1] [2] [3]
The command ZINCRBY myset 5 memberA increases the score of memberA by 5 in the sorted set myset.