Sets

📄️ SADDLearn how to use Redis SADD command to add one or more members to a set.

📄️ SADDEXLearn how to use Redis SADDEX command adding in a value only if it does not exist.

📄️ SCARDLearn how to use Redis SCARD command to get the count of members in a set.

📄️ SDIFFLearn how to use Redis SDIFF command to get the difference from the first set against all the other sets.

📄️ SDIFFSTORELearn how to use Redis SDIFFSTORE command to extract the difference of sets and store it.

📄️ SINTERLearn how to use Redis SINTER command to get the intersection of multiple sets.

📄️ SINTERSTORELearn how to use Redis SINTERSTORE command to find the intersection of sets and store the result.

📄️ SISMEMBERLearn how to use Redis SISMEMBER command, to check if a given value is present in a set.

📄️ SMEMBERSLearn how to get all members of a set with the Redis SMEMBERS command.

📄️ SMISMEMBERLearn how to use Redis SMISMEMBER command to verify the membership of multiple keys in a set.

📄️ SMOVELearn how to use Redis SMOVE command to shift a member from a source set to a target set.

📄️ SPOPLearn how to remove and return random members from a set with Redis SPOP command.

📄️ SREMLearn how to use Redis SREM command to remove specified members from a set.

📄️ SSCANLearn how to incrementally iterate over a collection using Redis SSCAN command.

📄️ SUNIONLearn how to use Redis SUNION command to form a set by combining other sets.

📄️ SUNIONSTORELearn how to use Redis SUNIONSTORE command to combine multiple sets and store the result in a new set.