Skip to main content

ZREMRANGEBYSCORE

Syntax

ZREMRANGEBYSCORE key min max

Module

sortedset

Categories

write slow sortedset

Description

Removes the elements whose scores are in the range between min and max.

Examples

Remove the elements whose scores are in the range between min and max:

db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
deletedCount, err := vault.ZRemRangeByScore("key", 3.55, 12.75)