Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

lindex #

Returns the element at the provided index in a list.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_lindex/<_id>/<index>
Method: GET

Other protocols #

{
  "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.

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