Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Expire At

AI-generated

Summary

Set a specific Redis key to expire at a given Unix timestamp.

Inputs

  • Key (required) — The name of the Redis key to set an expiration for.
  • Timestamp (required) — The Unix timestamp (in seconds) when the key should expire.

Output shape

a single JSON object containing the key name and a boolean indicating if the expiration was successfully set.

The output has the format {key: string, set: boolean}, where 'set' is true if the expire-at time was successfully applied. This operation only sets expiration and does not return the key's value or other data.

Examples

Example 1: Expire key at future timestamp

Set 'myKey' to expire at Unix timestamp 1700000000 (e.g., some future date/time). Output confirms if expiration was set.

Discussion