Set a TTL in seconds.
Section: Keys and expiration
Set expiration in seconds
bash
bash
EXPIRE session:123 3600Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Keys and expiration