content/commands/pexpiretime.md
PEXPIRETIME has the same semantic as [EXPIRETIME]({{< relref "/commands/expiretime" >}}), but returns the absolute Unix expiration timestamp in milliseconds instead of seconds.
{{% redis-cli %}} SET mykey "Hello" PEXPIREAT mykey 33177117420000 PEXPIRETIME mykey {{% /redis-cli %}}
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="pexpiretime-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
-1 if the key exists but has no associated expiration time.-2 if the key does not exist.-tab-sep-
One of the following:
-1 if the key exists but has no associated expiration time.-2 if the key does not exist.{{< /multitabs >}}