get

Gets the value of a key.

[Redis documentation]


Query Syntax

HTTP

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

Other protocols

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

Arguments

  • _id: key to fetch

Response

Returns the queried key's value. If the key doesn't exist, get returns null.

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