1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
# Redis `set` commands (17/17 implemented)
## [SADD](https://redis.io/commands/sadd/)
Adds one or more members to a set. Creates the key if it doesn't exist.
## [SCARD](https://redis.io/commands/scard/)
Returns the number of members in a set.
## [SDIFF](https://redis.io/commands/sdiff/)
Returns the difference of multiple sets.
## [SDIFFSTORE](https://redis.io/commands/sdiffstore/)
Stores the difference of multiple sets in a key.
## [SINTER](https://redis.io/commands/sinter/)
Returns the intersect of multiple sets.
## [SINTERCARD](https://redis.io/commands/sintercard/)
Returns the number of members of the intersect of multiple sets.
## [SINTERSTORE](https://redis.io/commands/sinterstore/)
Stores the intersect of multiple sets in a key.
## [SISMEMBER](https://redis.io/commands/sismember/)
Determines whether a member belongs to a set.
## [SMEMBERS](https://redis.io/commands/smembers/)
Returns all members of a set.
## [SMISMEMBER](https://redis.io/commands/smismember/)
Determines whether multiple members belong to a set.
## [SMOVE](https://redis.io/commands/smove/)
Moves a member from one set to another.
## [SPOP](https://redis.io/commands/spop/)
Returns one or more random members from a set after removing them. Deletes the set if the last member was popped.
## [SRANDMEMBER](https://redis.io/commands/srandmember/)
Get one or multiple random members from a set
## [SREM](https://redis.io/commands/srem/)
Removes one or more members from a set. Deletes the set if the last member was removed.
## [SSCAN](https://redis.io/commands/sscan/)
Iterates over members of a set.
## [SUNION](https://redis.io/commands/sunion/)
Returns the union of multiple sets.
## [SUNIONSTORE](https://redis.io/commands/sunionstore/)
Stores the union of multiple sets in a key.
|