zcount

This block is part of the redis group and was last modified in core v15.0.3.

Redis Key Selection Required

This block relies on a Redis key to perform its redis releated actions. You must manually select the Redis key you want to use in the flow in the blueprint using the Redis key selector modal. To access the modal, click the white button on the block.

zcount v15.0.3

Counts the members of a sorted set with a score between min and max.

In pins 3 + flow
  • flow
  • set value required

    key of the sorted set

  • min value

    lowest score, default -inf

  • max value

    highest score, default +inf

Out pins 4 + flow
  • flow
  • number number
  • success condition
  • error value
  • key value

min and max are redis_zrangebyscore's bounds: a number, or a Redis bound as text ("-inf", "+inf", "(5" for exclusive); a bound that is not wired is the open end, one that cannot be read is INVALID_BOUND and nothing is counted. number is the count; 0 for a key that is not there. A key of another type is an error (WRONGTYPE ...), never an empty answer.

redis zcount
zcount
count by score

Version history

Introduced in v15.0.3.

Service documentation

External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.
Back to redis Return to the main group to view all sub-groups Back to redis sorted sets Return to the group to view all blocks within this group