psetex #
Sets a key with the provided value, and an expiration delay expressed in milliseconds. If the key does not exist, it is created beforehand.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_psetex/<_id>
Method: POST
Body:{
"milliseconds": 60000,
"value": "<value>"
}Other protocols #
{
"controller": "ms",
"action": "psetex",
"_id": "<key>",
"body": {
"milliseconds": 60000,
"value": "<value>"
}
}Argument #
_id: key identifier
Body properties #
milliseconds: the key time to live, in millisecondsvalue: new value
Response #
Returns an acknowledgement.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "psetex",
"collection": null,
"index": null,
"result": "OK"
}