The SET operations are given below :
SMEMBERS : Values from the KEY are retrieved.
SADD : A new element is added to the set.
SISMEMBER : The presence of a specified element is verified in the SET.
SPOP : The element is popped out from the SET.
Example :
127.0.0.1:6379> SADD TEST_SET A
(integer) 1
127.0.0.1:6379> SADD TEST_SET B
(integer) 1
127.0.0.1:6379> SMEMBERS TEST_SET
1) "A"
2) "B"
127.0.0.1:6379> SISMEMBER TEST_SET A
(integer) 1 [1 indicates it's true; it's available]
127.0.0.1:6379> SPOP TEST_SET
"A"
127.0.0.1:6379> SMEMBERs TEST_SET
1) "B"