PEXPIREAT

Since 1.1.0Keys

Syntax

PEXPIREAT key unix-time-milliseconds [NX | XX | GT | LT]
  • Flags: fast, write
  • ACL categories: @fast, @generic, @keyspace, @write
  • Arity: -3

Makes key expire at a Unix time, in milliseconds. It takes the same NX, XX, GT and LT conditions as EXPIRE.

Reply

  • 1 if the expiry was set; 0 if the key does not exist or the condition was not met.

Examples

> SET a 1
OK
> PEXPIREAT a 4102444800000
(integer) 1
> PEXPIRETIME a
(integer) 4102444800000