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:

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