Skip to main content

SMEMBERS

Syntax

SMEMBERS key

Module

set

Categories

read set slow

Description

Returns all members of a set.

Examples

Get all members of a set:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
elements, err := db.SMembers("key")