|
ZrangebyscoreCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
► Sign in to add a comment
|
Search
|
|
ZrangebyscoreCommand
We moved to Redis.io!Redis home moved to http://redis.io, please visit our new home. |
Why doesn't this command allow the 'withscores' option? Its incredibly useful on zrange, seems like the same usecases apply.
@sam: yes you are right, I'll add this option, adding it in the TODO list.
The codebase is so clean I was able to implement myself in a few minutes. forked and committed on github. I'm sending a pull request now.
http://github.com/samhendley/redis/commit/0500ef2736d06edd9e1a2b1cfa480dcd463aa386
I do not see this documented, but is count optional? For example, if the offset is 5 and the "count" is left off, then will all the items be returned from that offset?
no its not optional. Doesn't look like it would be hard to do but there may be a good reason why its not implemented.
Umm, why is there no ZREVRANGEBYSCORE?
+1 for ZREVRANGEBYSCORE
+1 ZREVRANGEBYSCORE
I hope we can get 'ZREVRANGEBYSCORE' implemented soon as it is very useful for retrieving a 'live list of items' in most recent order (when you use ticks as the score).
+1 ZREVRANGEBYSCORE
I'd love an option (or another call) to remove the members returned
+1 ZREVRANGEBYSCORE
If you want ZREVRANGEBYSCORE, please vote for the ticket: http://code.google.com/p/redis/issues/detail?id=211
+1 ZREVRANGEBYSCORE
http://github.com/schleyfox/redis/commit/05c2521752b467337083947ec8789a8256e6c609 ZREVRANGEBYSCORE is in that commit. If this fulfills your need, we can try to get it into the main tree.
+1 ZREVRANGEBYSCORE
+1 ZREVRANGEBYSCORE
Is there any easy way to sum first N elements or elements by range? Something like:
At the moment to sum all scores we need to ZRANGE 0 -1 and then for each member call ZSCORE, not too efficient.
Is there other way to do that?
ZDIFF would be great - any thoughts?