Core
API v2.x
2

# persist

Removes the expiration delay or timestamp from a key, making it persistent.

[Redis documentation]


# Query Syntax

# HTTP

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

# Other protocols

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

# Argument

  • _id: key to persist

# Response

Returns either 0 (command failed), or 1 (command succeeded).

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