Core
API v2.x
2

zcard #

Returns the number of elements held by a sorted set.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_zcard/<_id>
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "zcard",
  "_id": "<key>"
}

Arguments #

  • _id: sorted set identifier

Response #

Returns the number of members in the sorted set.

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