ZMSCORE
Syntax
ZMSCORE key member [member ...]
Module
sortedsetCategories
fast read sortedsetDescription
Returns the associated scores of the specified member in the sorted set. Returns nil for members that do not exist in the set.
Examples
- Go (Embedded)
- CLI
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")
Get the scores of the specified members in the sorted set:
> ZMSCORE key member1 member2