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

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

Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "pfcount",
  "keys": ["key1", "key2", "..."]
}

Argument

  • keys: hyperloglog key identifiers

Response

Returns the probabilistic cardinality.

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