pttl

Returns the remaining time to live of a key, in milliseconds.

[Redis documentation]


Query Syntax

HTTP

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

Other protocols

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

Argument

  • _id: key identifier

Response

Returns the remaining TTL, in milliseconds.

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