Sorted Set

ZREMRANGEBYLEX

Remove all members in a sorted set between the given lexicographical range.

Arguments

keybodystrrequired

The key of the sorted set

minbodystrrequired

The minimum lexicographical value to remove.

minbodystrrequired

The maximum lexicographical value to remove.

Response

intrequired

The number of elements removed from the sorted set.

Example
redis.zremrangebylex("key", "alpha", "omega")
Loading search…