Refer to Chapter 8, Section 8.6, p78 of "Redis Design and Implementation": "The member of each element in the ordered set is a string object, and the score of each element is a double-type floating point number. ". In other words, for zset, redis uses a fixed double type to represent numbers, instead of using "up conversion" to store numbers like an integer set.
Refer to Chapter 8, Section 8.6, p78 of "Redis Design and Implementation": "The member of each element in the ordered set is a string object, and the score of each element is a double-type floating point number. ". In other words, for zset, redis uses a fixed double type to represent numbers, instead of using "up conversion" to store numbers like an integer set.