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"}
Move a member from one set to another
True
False
Was this page helpful?