CMS.QUERY

Syntax
CMS.QUERY key item [item ...]
Available in:
Redis Stack / Bloom 2.0.0
Time complexity:
O(n) where n is the number of items

Returns the count for one or more items in a sketch.

Parameters:

  • key: The name of the sketch.
  • item: One or more items for which to return the count.

Return

Count of one or more items

Array reply of Integer reply with a min-count of each of the items in the sketch.

Examples

redis> CMS.QUERY test foo bar
1) (integer) 10
2) (integer) 42

RATE THIS PAGE
Back to top ↑