await redis.sadd("original", "a", "b", "c"); 
const moved =  await redis.smove("original", "destination", "a");
// moved:       1
// original:    ["b", "c"]
// destination: ["a"]

Arguments

source
string
required
The key of the set to move the member from.
destination
string
required
The key of the set to move the member to.
member
TMember
The members to move

Response

1 if the member was moved, 0 if not.
await redis.sadd("original", "a", "b", "c"); 
const moved =  await redis.smove("original", "destination", "a");
// moved:       1
// original:    ["b", "c"]
// destination: ["a"]