Skip to main content

ZREMRANGEBYLEX

Syntax

ZREMRANGEBYLEX key min max

Module

sortedset

Categories

write slow sortedset

Description

Removes the elements in the lexicographical range between min and max.

Examples

Remove the elements in the lexicographical range between min and max:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
deletedCount, err := vault.ZRemRangeByLex("key", "aa", "xx")