PEXPIREAT

Synopsis

PEXPIREAT key ttl-as-timestampPEXPIREAT has the same effect as EXPIREAT, but the Unix timestamp at which the key will expire is specified in milliseconds instead of seconds.

Return value

Returns integer reply, specifically 1 if the timeout was set and 0 if key does not exist.

Examples

  1. $ SET yugakey "Yugabyte"
  1. "OK"
  1. $ PEXPIREAT yugakey 1555555555005
  1. (integer) 1
  1. $ PTTL yugakey
  1. (integer) 18674452994

See also

expireat, ttl, pttl, set