My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
SrandmemberCommand  
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 d...@dangould.com, Dec 20, 2009

It would be cool if this could take an optional integer parameter with the number of random items. If you said SRANDMEMBER foo 2, it would give you two distinct random elements from the set.

Comment by lev.ko...@gmail.com, Jul 8, 2010

I also think SRANDMEMBER should receive the number of results. If I need 200 results (a real use case, by the way), it is wasteful to send 200 SRANDMEMBER commands.

Comment by anders.n...@gtempaccount.com, Aug 18, 2010

+1 on making SRANDMEMBER accept an parameter specifying the number of members to return. It might be an idea to delegate this to a SRANDMEMBERS command for clarity.


Sign in to add a comment
Powered by Google Project Hosting