Core
API v2.x
2

sismember #

Checks if a value is a member of a set of unique values.

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

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

Argument #

  • _id: set key identifier
  • member: member value to check

Response #

Returns either 1 (member belongs to the set), or 0.

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