Move a member from one set to another
redis.sadd("src", "one", "two", "three") redis.sadd("dest", "four") assert redis.smove("src", "dest", "three") == True assert redis.smembers("source") == {"one", "two"} assert redis.smembers("destination") == {"three", "four"}
The key of the set to move the member from.
The key of the set to move the member to.
The members to move
True if the member was moved, False if it was not.
True
False
Was this page helpful?