Skip to content

Transaction Condition.SortedSetLengthEqual with min and max score #1331

@luaneko

Description

@luaneko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions