Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

scard #

Returns the number of members stored in a set of unique values.

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

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

Argument #

  • _id: set key identifier

Response #

Returns the set length.

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