EXPIREAT
EXPIREAT key timestamp
#Example
redis> SET mykey "Hello"
"OK"
redis> EXISTS mykey
(integer) 1
redis> EXPIREAT mykey 1293840000
(integer) 1
redis> EXISTS mykey
(integer) 0
Set the expiration for a key as a UNIX timestamp
Comments
EXPIREAT key timestamp
redis> SET mykey "Hello"
"OK"
redis> EXISTS mykey
(integer) 1
redis> EXPIREAT mykey 1293840000
(integer) 1
redis> EXISTS mykey
(integer) 0
Set the expiration for a key as a UNIX timestamp