SREM
Syntax
SREM key member [member...]
Module
setCategories
fast set writeDescription
Remove one or more members from a set.
Examples
- Go (Embedded)
- CLI
Remove members from the set:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
deletedCount, err := db.SRem("key", "member1", "member2")
Remove members from the set:
> SREM key member1 member2