SISMEMBER
Syntax
SISMEMBER key member
Module
setCategories
fast read setDescription
Returns if member is contained in the set.
Examples
- Go (Embedded)
- CLI
Check if a member is in the set:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.SisMember("key", "member")
Check if a member is in the set:
> SISMEMBER key member