-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect ZRANGE command response format in RESP3 mode (#2132)
Currently, ZRANGE command with scores will always return an array of string and double type: ``` 1) "a" 2) (double) 1.2 3) "b" 4) (double) 1.5 ``` But in Redis, it will return an array of arrays if the RESP3 was enabled: ``` 1) 1) "a" 2) (double) 1.2 2) 1) "b" 2) (double) 1.5 ``` This different behavior cannot be found with go-redis client since it will be always parsed as the corrent member-score pairs, but using ZRANGE command in Lua script this inconsistent result format might be awareness.
- Loading branch information
Showing
2 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters