sortedset
sortedset copied to clipboard
An ordered collection implemented in Golang with O(log(N)) time complexity on adding / searching / removing
When GetByScoreRange with start > end, and start < min(score) in SortedSet, it will return SortedSet.header created by New() function. This confuses the caller and cause unexpected exception. ``` func...
I believe the following test here should fail. But it succeeds. https://github.com/wangjia184/sortedset/blob/af6d6d227aa79e2a64b899d995ce18aa0bef437c/sortedset_test.go#L98 AFAIK, this library attempts to mirror the `redis`'s `ZSet` behavior as shown: ```shell hbina@akarin ~/g/radish (hbina-implement-zset-tests) [1]> redis-cli...
This is a feature request to add a remove option to the options struct for `GetByScoreRange`. I have a branch and test case written, @wangjia184 could I have write access...
Element what i want to sort has 3 sort args,firstly base on score(uint64 / uint32),secondly,timestamp,thirdly,name(string).How can i use this repo to do this?