ZREMRANGEBYLEX
Syntax
ZREMRANGEBYLEX key min max
Module
sortedsetCategories
write slow sortedsetDescription
Removes the elements in the lexicographical range between min and max.
Examples
- Go (Embedded)
- CLI
Remove the elements in the lexicographical range between min and max:
db, err := sugardb.NewSugarDB()
if err != nil {
log.Fatal(err)
}
deletedCount, err := vault.ZRemRangeByLex("key", "aa", "xx")
Remove the elements in the lexicographical range between min and max:
> ZREMRANGEBYLEX key aa xx