Description
## Setup Command
ZADD leaderboard 50 "Alice" 70 "Bob" 60 "Charlie" 80 "Dave"
Commands and Observations
- ZRANGE leaderboard 0 0
Redis: Returns the lowest score entry ("Alice")
DiceDB: Matches Redis behavior.
- ZRANGE leaderboard -1 -1
Redis: Returns the highest score entry ("Dave")
DiceDB: Matches Redis behavior.
- ZRANGE leaderboard 0 01
Redis: (error) ERR value is not an integer or out of range
DiceDB: Command succeeds unexpectedly.
- ZRANGE leaderboard -1 0
Redis: Returns an empty array.
DiceDB: Produces no output.
- ZRANGE leaderboard 1 0
Redis: Returns an empty array.
DiceDB: Produces no output.
- ZRANGE leaderboard (60 80 BYSCORE
Redis: Executes correctly, returning entries with scores between 60 and 80, exclusive of 60.
DiceDB: Error: ERR syntax error
- ZRANGE leaderboard (60 (80 BYSCORE
Redis: Executes correctly, returning entries with scores strictly between 60 and 80.
DiceDB: Error: ERR syntax error
- ZRANGE leaderboard [a [z BYLEX
Redis: Executes correctly, returning entries between lexical ranges.
DiceDB: Error: ERR syntax error
- ZRANGE leaderboard 0 3 WITHSCORES REV
Redis: Returns entries in descending score order with scores.
DiceDB: Matches Redis behavior.
- ZRANGE random 0 2 (key that is not in the cache)
Redis: Returns (empty array)
DiceDB: Produces no output.
- ZRANGE leaderboard (1 +inf BYSCORE LIMIT 0 2
Redis: Returns up to 2 entries with scores greater than 1.
DiceDB: Error: ERR syntax error
I believe Error: ERR syntax error means not implemented. I'm open to implementing the missing parts (new to Golang will take me a lot of time tho).
Originally posted by @jonathanalvares9009 in #1284 (comment)