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
返回草图中一个或多个项目的计数。
参数:
- key: 草图的名称。
- item: 要返回计数的一个或多个项目。
返回
一个或多个项目的计数
Array reply 的 Integer reply 包含草图中每个项目的最小计数。
示例
redis> CMS.QUERY test foo bar
1) (integer) 10
2) (integer) 42