await redis.sadd("set1", "a", "b", "c"); await redis.sadd("set2", "c", "d", "e"); const diff = await redis.sdiff("set1", "set2"); console.log(diff); // ["a", "b"]
Return the difference between sets
Was this page helpful?