mget

Returns the values of the provided keys.

[Redis documentation]


Query Syntax

HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_mget?keys=key1,key2,...
Method: GET

Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "mget",
  "keys": ["key1", "key2", "..."]
}

Argument

  • keys: a list of keys to get

Response

Returns the list of corresponding key values, in the same order than the one provided in the query.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "mget",
  "collection": null,
  "index": null,
  "result": [
    "value of key1",
    "value of key2",
    "..."
  ]
}