Skip to main content

SISMEMBER

Syntax

SISMEMBER key member

Module

set

Categories

fast read set

Description

Returns if member is contained in the set.

Examples

Check if a member is in the set:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
ok, err := db.SisMember("key", "member")