ZREMRANGEBYSCORE
Syntax
ZREMRANGEBYSCORE key min max
Module
sortedsetCategories
write slow sortedsetDescription
Removes the elements whose scores are in the range between min and max.
Examples
- Go (Embedded)
- CLI
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)
Remove the elements whose scores are in the range between min and max:
> ZREMRANGEBYSCORE key 3.55 12.75