Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

key
str
required
The key of the set.
count
int
How many members to remove and return.

Response

The popped member. If count is specified, a set of members is returned.
redis.sadd("myset", "one", "two", "three")

assert redis.spop("myset") in {"one", "two", "three"}