In Redis, the ZREMRANGEBYLEX
command enables us to use a lexicographical range to remove members from a sorted set. That is, we can specify that all members between a given lexicographical range are removed.
This relies on all members having the same score (which forces lexicographical ordering).
Continue reading