My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ZrangebyscoreCommand  
Updated Dec 21, 2010 by anti...@gmail.com

We moved to Redis.io!

Redis home moved to http://redis.io, please visit our new home.

Comment by sam.hend...@gmail.com, Feb 6, 2010

Why doesn't this command allow the 'withscores' option? Its incredibly useful on zrange, seems like the same usecases apply.

Comment by project member anti...@gmail.com, Feb 6, 2010

@sam: yes you are right, I'll add this option, adding it in the TODO list.

Comment by sam.hend...@gmail.com, Feb 6, 2010

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

Comment by gwebmast...@yahoo.com, Feb 6, 2010

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?

Comment by sam.hend...@gmail.com, Feb 6, 2010

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.

Comment by demis.be...@gmail.com, Mar 25, 2010

Umm, why is there no ZREVRANGEBYSCORE?

Comment by skau...@gmail.com, Apr 7, 2010

+1 for ZREVRANGEBYSCORE

Comment by d...@dangould.com, May 18, 2010

+1 ZREVRANGEBYSCORE

Comment by demis.be...@gmail.com, May 24, 2010

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).

Comment by kostya1...@gmail.com, Jun 11, 2010

+1 ZREVRANGEBYSCORE

Comment by swimming...@gmail.com, Jun 15, 2010

I'd love an option (or another call) to remove the members returned

Comment by vita...@gmail.com, Aug 1, 2010

+1 ZREVRANGEBYSCORE

Comment by wils...@gmail.com, Aug 3, 2010

If you want ZREVRANGEBYSCORE, please vote for the ticket: http://code.google.com/p/redis/issues/detail?id=211

Comment by jaa...@gmail.com, Aug 7, 2010

+1 ZREVRANGEBYSCORE

Comment by schley...@gmail.com, Aug 9, 2010

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.

Comment by jcap...@gmail.com, Nov 4, 2010

+1 ZREVRANGEBYSCORE

Comment by VnVi...@gmail.com, Nov 4, 2010

+1 ZREVRANGEBYSCORE

Comment by hamsterr...@gmail.com, Nov 25, 2010

Is there any easy way to sum first N elements or elements by range? Something like:

ZSUM key start end

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?

Comment by mkre...@gmail.com, Nov 29, 2010

ZDIFF would be great - any thoughts?


Sign in to add a comment
Powered by Google Project Hosting