Difficulty: Beginner
How do you set a key to expire in 60 seconds?
Use the `EXPIRE key 60` command.
TTL, EXPIRE, PEXPIRE
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.