Core
API v2.x
2

zcard #

Returns the number of elements held by a sorted set.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_zcard/<_id>
Method: GET

Other protocols #

{
  "controller": "ms",
  "action": "zcard",
  "_id": "<key>"
}

Arguments #

  • _id: sorted set identifier

Response #

Returns the number of members in the sorted set.

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