ZREM
Syntax
ZREM key member [member ...]
Module
sortedsetCategories
write fast sortedsetDescription
Removes the listed members from the sorted set. Returns the number of elements removed.
Examples
- Go (Embedded)
- CLI
Remove the listed members from the sorted set:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
deletedCount, err := db.ZRem("key", "member1", "member2")
Remove the listed members from the sorted set:
> ZREM key member1 member2