Core
API v2.x
2

pfcount #

Returns the probabilistic cardinality of a HyperLogLog data structure, or of the merged HyperLogLog structures if more than 1 is provided (see pfadd).

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_pfcount?keys=key1,key2,...
Method: GET

Other protocols #

{
  "controller": "ms",
  "action": "pfcount",
  "keys": ["key1", "key2", "..."]
}

Argument #

  • keys: hyperloglog key identifiers

Response #

Returns the probabilistic cardinality.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "pfcount",
  "collection": null,
  "index": null,
  "result": 6
}