EXPIRESet a key's TTL in seconds (non-positive TTL deletes the key).
| Syntax | EXPIRE key seconds |
| Group | generic |
| Arity | 3 |
| Since | 1.0.0 |
| Flags | write |
| Complexity | O(1) |
| Redis compatibility | differs: the NX / XX / GT / LT condition flags are not parsed — arity is fixed at 3, so EXPIRE key seconds NX is a wrong-arity error |