Arguments
string
required
The key of the set to remove the member from.
...TMember[]
One or more members to remove from the set.
Response
How many members were removed
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.sadd("set", "a", "b", "c");
const removed = await redis.srem("set", "a", "b", "d");
console.log(removed); // 2
Remove one or more members from a set
await redis.sadd("set", "a", "b", "c");
const removed = await redis.srem("set", "a", "b", "d");
console.log(removed); // 2
Was this page helpful?