ZSCORE
Syntax
ZSCORE key member
Module
sortedsetCategories
read fast sortedsetDescription
Returns the score of the member in the sorted set.
Examples
- Go (Embedded)
- CLI
Returns the score of the member in the sorted set:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
score, err := vault.ZScore("key", "member")
Returns the score of the member in the sorted set:
> ZSCORE key member