lindex

Returns the element at the provided index in a list.

[Redis documentation]


Query Syntax

HTTP

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

Other protocols

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

Argument

  • _id: list key identifier
  • index: index of the list. Lists are 0-indexed. If negative, it goes backward from the end of the list

Response

Returns the stored value at the provided list index.

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