NoteClick here to go to documentation for the latest version of YugaByte DB.
EXPIREAT key ttl-as-timestamp
EXPIREAT has the same effect as EXPIRE, but instead of specifying the number of seconds representing the TTL (time to live), it takes an absolute Unix timestamp (seconds since January 1, 1970). A timestamp in the past will delete the key immediately.
Returns integer reply, specifically 1 if the timeout was set and 0 if key does not exist.
$ SET yugakey "YugaByte"
$ EXPIREAT yugakey 1293840000
$ EXISTS yugakey