Skip to main content

SREM

Syntax

SREM key member [member...]

Module

set

Categories

fast set write

Description

Remove one or more members from a set.

Examples

Remove members from the set:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
deletedCount, err := db.SRem("key", "member1", "member2")