sinterstore

Computes the intersection of the provided sets of unique values, and stores the result in a destination key.

If the destination key already exists, it is overwritten.

[Redis documentation]


Query Syntax

HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_sinterstore
Method: POST
Body:
Copied to clipboard!
{
  "destination": "<destination key>",
  "keys": ["key1", "key2", "..."]
}

Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "sinterstore",
  "body": {
    "destination": "<destination key>",
    "keys": ["key1", "key2", "..."]
  }
}

Body properties

  • destination: new set to create, holding the intersection
  • keys: source sets to intersect with the reference set

Response

Returns the number of values stored in the destination key.

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