guilleiguaran/fakeredis — pull request #97 by xgess (2014-02-17 21:46:16+00:00)
Title: allow srandmembers to take an optional parameter for the number of elements

Redis supports an optional parameter for srandmember. This adds some of that behavior.

Documentation for SRANDMEMBER: http://redis.io/commands/srandmember
"Starting from Redis version 2.6, when called with the additional count argument, return an array of count distinct elements if count is positive."