Skip to main content

ZMSCORE

Syntax

ZMSCORE key member [member ...]

Module

sortedset

Categories

fast read sortedset

Description

Returns the associated scores of the specified member in the sorted set. Returns nil for members that do not exist in the set.

Examples

Get the scores of the specified members in the sorted set:

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