Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 641 Bytes

File metadata and controls

59 lines (41 loc) · 641 Bytes
code type title
true
page
lpop

lpop

Removes and returns the first element of a list.

[Redis documentation]


Query Syntax

HTTP

URL: http://kuzzle:7512/ms/_lpop/<_id>
Method: POST

Other protocols

{
  "controller": "ms",
  "action": "lpop",
  "_id": "<key>"
}

Argument

  • _id: list key identifier

Response

Returns the removed value.

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