java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.sortedset.ZCOUNT
All Implemented Interfaces:
Resp3Command

public class ZCOUNT extends RespCommand implements Resp3Command
Returns the number of elements in the sorted set at key with a score between min and max. Min and max can be -inf and +inf, so that you are not required to know the highest or lowest score in the sorted set to get all elements from or up to a certain score. By default, the interval specified by min and max is closed (inclusive). It is possible to specify an open interval (exclusive) by prefixing the score with the character (. min and max can be -inf and +inf, so that you are not required to know the highest or lowest score in the sorted set to get all elements from or up to a certain score. For example: - ZCOUNT people (1 5 Will return all elements with 1 invalid input: '<' score invalid input: '<'= 5 while: - ZCOUNT people (5 (10 Will return all the elements with 5 invalid input: '<' score invalid input: '<' 10 (5 and 10 excluded).
Since:
15.0
See Also: