Redis PEXPIRETIME Command Explained

The Redis PEXPIRETIME command returns the absolute Unix timestamp in milliseconds at which the given key will expire. This is the number of milliseconds since 00:00:00 UTC on 1 January 1970 until the expiry time of the key.

This works exactly the same as EXPIRETIME, but it returns the Unix timestamp in milliseconds instead of seconds.

The PEXPIRETIME command was introduced in Redis 7.0.0.

Read more

Redis EXPIRETIME Command Explained

The Redis EXPIRETIME command returns the absolute Unix timestamp in seconds at which the given key will expire. This is the number of seconds since 00:00:00 UTC on 1 January 1970 until the expiry time of the key.

The EXPIRETIME command was introduced in Redis 7.0.0.

Read more

Redis PEXPIREAT Command Explained

The Redis PEXPIREAT command sets a timeout as a Unix timestamp on a given key in milliseconds. It works the same as the EXPIREAT command, except that it sets the timeout in milliseconds instead of seconds.

It’s also similar to the PEXPIRE command, but with an absolute Unix timestamp instead of a time interval.

Read more

Redis PEXPIRE Command Explained

The Redis PEXPIRE command sets a timeout on a given key in milliseconds. After the timeout has expired, the key will be deleted.

The PEXPIRE command works exactly the same as the EXPIRE command, except that it returns the timeout in milliseconds instead of seconds.

Read more

Redis EXPIRE Command Explained

The Redis EXPIRE command sets a timeout on a given key in seconds. After the timeout has expired, the key will be deleted.

Redis also has a PEXPIRE command that works the same as EXPIRE, except that it returns the timeout in milliseconds instead of seconds.

A key with a timeout is said to be volatile in Redis terminology.

Read more

Redis APPEND Command Explained

In Redis, the APPEND command appends a given value to the end of the value of a specified key.

If the key doesn’t exist, APPEND creates the key with the empty string and appends the value to it (so it basically works like the SET command in this case).

Read more