Looking at source, Condition.SortedSetLengthEqual transaction condition is currently using ZCARD key to determine sorted set's length.
It would be nice to have an overload of this method that accepts minimum and maximum score range, using ZCOUNT key min max. This would look at the number of members with score in the given range, not the cardinality of the entire set.
Looking at source,
Condition.SortedSetLengthEqualtransaction condition is currently usingZCARD keyto determine sorted set's length.It would be nice to have an overload of this method that accepts minimum and maximum score range, using
ZCOUNT key min max. This would look at the number of members with score in the given range, not the cardinality of the entire set.