-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could you add zset support? #20
Comments
sorted sets are a little harder since there's no simple data structure that we can use that will have the same properties/guarantees. Closest I can think of would be a BiMap from guava library, but it doesn't guarantee the sort order (and we don't want to sort on every call to ZRANGE) as far as I know they're implemented with skiplists in redis internally, but I don't know of any public library that has an implementation that we could use. Let me know if you have any ideas. |
I'm going to implement support for Some details about Redis ZSET Underlying Datastructure: http://biais.org/redis-zset-underlying-datastructure/ |
I think redis-mock is only for unittest, performance things can be ignored. So the implementation of skiplist is not nessessary,you can just use hashmap instead.zrange/zrank such operation, you can just tranverse the map to get the result. for lack of zset implementation, I cannot use mockredis at all in my project. so sad ~ |
could you add zset support
The text was updated successfully, but these errors were encountered: