PEXPIRETIME
Note
Official reference: PEXPIRETIME.
Read the key expiration timestamp in milliseconds.
Syntax
PEXPIRETIME key
-1 means no expiration; -2 means the key is missing.
Results
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | RESULT field, LONG type |
Example
SET demo:message hello EX 60
PEXPIRETIME demo:message