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:

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