Redis.srandmember

Return a random element from a Set, without removing the element. If the Set is empty or the key does not exist, a nil object is returned. <p> The SPOP command does a similar work but the returned element is popped (removed) from the Set. <p> Time complexity O(1) @param key @return Bulk reply

  1. string srandmember(string key)
    class Redis
    string
    srandmember
    (
    string key
    )
  2. alias srandmember = BinaryRedis.srandmember
  3. List!(string) srandmember(string key, int count)

Meta