Redis.spop

Remove a random element from a Set returning it as return value. If the Set is empty or the key does not exist, a nil object is returned. <p> The {@link #srandmember(string)} command does a similar work but the returned element is not removed from the Set. <p> Time complexity O(1) @param key @return Bulk reply

  1. string spop(string key)
    class Redis
    string
    spop
    (
    string key
    )
  2. alias spop = BinaryRedis.spop
  3. Set!(string) spop(string key, long count)

Meta