Sets
Unordered collections of unique strings, with membership tests and intersections, unions and differences between sets.
SADD: Adds members to the set at key.SCARD: Returns the number of members of the set at key.SDIFF: Returns the members of the first set that are in none of the others.SDIFFCARD: Returns how many members the difference of the given sets has, without returning them: a command of Redis 8.10.SDIFFSTORE: Stores the difference of the given sets, as SDIFF computes it, at destination, replacing whatever was there, and its expiry.SINTER: Returns the members that are in every one of the given sets.SINTERCARD: Returns how many members the intersection of the given sets has, without returning them.SINTERSTORE: Stores the intersection of the given sets, as SINTER computes it, at destination, replacing whatever was there, and its expiry.SISMEMBER: Tells whether member is in the set at key.SMEMBERS: Returns every member of the set at key, in no particular order.SMISMEMBER: Tells, for each of several members, whether it is in the set at key.SMOVE: Moves member from the set at source to the set at destination, in one step.SPOP: Removes and returns members of the set at key, picked at random.SRANDMEMBER: Returns members of the set at key, picked at random, without removing them.SREM: Removes members from the set at key.SSCAN: Goes through the members of the set at key a page at a time, as SCAN goes through keys.SUNION: Returns the members that are in any of the given sets.SUNIONCARD: Returns how many members the union of the given sets has, without returning them: a command of Redis 8.10.SUNIONSTORE: Stores the union of the given sets at destination, replacing whatever was there, and its expiry.