kevy4.0

ZCOUNT

Count members with scores within the given bounds.

ZCOUNT key min max
Group
Sorted set
Since
1.0.0
Arity
exactly 4
Flags
readonly

Complexity

O(N) — a full scan and filter, NOT a range seek; Redis's O(log N) does not apply

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Compatible

Behaves as Redis does.

See also

BZPOPMINZADDZCARDZDIFFSTOREZINCRBYZINTERCARDZINTERSTOREZPOPMINZPOPMIN.BELOWZRANGEZRANGEBYSCOREZRANKZREMZREMRANGEBYRANKZREMRANGEBYSCOREZREVRANGEBYSCOREZSCANZSCOREZUNIONSTORE

← All commands