EXPIREAT
Synopsis
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.
Return value
Returns integer reply, specifically 1 if the timeout was set and 0 if key does not exist.
Examples
$ SET yugakey "Yugabyte"
"OK"
$ EXPIREAT yugakey 1293840000
(integer) 1
$ EXISTS yugakey
(integer) 0
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .