PSETEX
Note
Official reference: PSETEX.
Write a string with an expiration in milliseconds.
Syntax
PSETEX key milliseconds value
The corresponding EX, PX or NX option of SET is also available.
Results
| Return | Rows | Content |
|---|---|---|
| Update count | -- | Returns 1 if successful; 0 otherwise. (Success when status is "OK") |
Example
PSETEX demo:message 60000 hello