SETEX (deprecated)
As of Redis version 2.6.12, this command is regarded as deprecated.
It can be replaced by SET with the EX argument when migrating or writing new code.
SETEX key seconds value
@write, @string, @slow, Set key to hold the string value and set key to timeout after a given number of seconds. This command is equivalent to:
SET key value EX seconds
An error is returned when seconds is invalid.
SETEX mykey 10 "Hello" TTL mykey GET mykey
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/setex/