CMS.QUERY key item [item ...]
- Available in:
Redis Stack /
- Time complexity:
- O(n) where n is the number of items
Returns the count for one or more items in a sketch.
- key: The name of the sketch.
- item: One or more items for which to return the count.
Count of one or more items
Array reply of Integer reply with a min-count of each of the items in the sketch.
redis> CMS.QUERY test foo bar
1) (integer) 10
2) (integer) 42
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.