SMOVE
Since 1.1.0Sets
Syntax
SMOVE source destination memberMoves member from the set at source to the set at destination, in one step.
Reply
1if the member was moved.0if it was not insource; nothing changes.
Examples
> SADD x a b
(integer) 2
> SMOVE x y a
(integer) 1
> SISMEMBER y a
(integer) 1
> SMOVE x y nope
(integer) 0