Move a member from one set to another
await redis.sadd("original", "a", "b", "c"); const moved = await redis.smove("original", "destination", "a"); // moved: 1 // original: ["b", "c"] // destination: ["a"]
The key of the set to move the member from.
The key of the set to move the member to.
The members to move
1 if the member was moved, 0 if not.
1
0
Was this page helpful?