> ## 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.

# Set commands

> Commands for storing and manipulating unordered collections of unique members.

> [card] [SADD](https://upstash.com/docs/redis/commands/set/sadd)
>
> Add members to a set

> [card] [SCARD](https://upstash.com/docs/redis/commands/set/scard)
>
> Get set cardinality

> [card] [SDIFF](https://upstash.com/docs/redis/commands/set/sdiff)
>
> Get set difference

> [card] [SDIFFSTORE](https://upstash.com/docs/redis/commands/set/sdiffstore)
>
> Store set difference

> [card] [SINTER](https://upstash.com/docs/redis/commands/set/sinter)
>
> Get set intersection

> [card] [SINTERCARD](https://upstash.com/docs/redis/commands/set/sintercard)
>
> Get intersection cardinality

> [card] [SINTERSTORE](https://upstash.com/docs/redis/commands/set/sinterstore)
>
> Store set intersection

> [card] [SISMEMBER](https://upstash.com/docs/redis/commands/set/sismember)
>
> Check if member exists in set

> [card] [SMEMBERS](https://upstash.com/docs/redis/commands/set/smembers)
>
> Get all set members

> [card] [SMISMEMBER](https://upstash.com/docs/redis/commands/set/smismember)
>
> Check membership of several values

> [card] [SMOVE](https://upstash.com/docs/redis/commands/set/smove)
>
> Move member between sets

> [card] [SPOP](https://upstash.com/docs/redis/commands/set/spop)
>
> Remove and return random members

> [card] [SRANDMEMBER](https://upstash.com/docs/redis/commands/set/srandmember)
>
> Get random members

> [card] [SREM](https://upstash.com/docs/redis/commands/set/srem)
>
> Remove members from a set

> [card] [SSCAN](https://upstash.com/docs/redis/commands/set/sscan)
>
> Incrementally iterate set members

> [card] [SUNION](https://upstash.com/docs/redis/commands/set/sunion)
>
> Get set union

> [card] [SUNIONSTORE](https://upstash.com/docs/redis/commands/set/sunionstore)
>
> Store set union


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.