Sorted Set
ZREMRANGEBYLEX
Remove all members in a sorted set between the given lexicographical range.
Arguments
keybodystringrequired
The key of the sorted set
minbodystringrequired
The minimum lexicographical value to remove.
maxbodystringrequired
The maximum lexicographical value to remove.
Response
integerrequired
The number of elements removed from the sorted set.
Example
await redis.zremrangebylex("key", "alpha", "omega")