GETEXRead a key and set its expiry in the same call.
| 语法 | GETEX key [EX seconds | PX milliseconds] |
| 分组 | string |
| 参数个数 | -2 |
| 起始版本 | 1.0.0 |
| 标志 | write |
| 复杂度 | O(1) |
| Redis 兼容性 | differs: EXAT / PXAT / PERSIST are not accepted, and an expiry of zero or less is refused rather than applied |