microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.78k stars 5.37k forks source link

about zscan #623

Open mJoshDev opened 4 years ago

mJoshDev commented 4 years ago

I had a question about zscan, how to return a sorted list (from min to max) and use zscan. Now I look seems to not sorted list, but every return result set is the same. e.g: zscan key 0 match count 3 return: 1:1, 3:3, 5:5 zscan key 0 match count 5 return: 1:1, 3:3, 5:5, 4:4, 9:9