Actions37
- Append
- Blocking Pop Left
- Blocking Pop Right
- Delete
- Eval
- Exists
- Expire At
- Get
- Get Set
- Hash Exists
- Hash Keys
- Hash Length
- Hash Values
- Increment
- Info
- JSON Get
- JSON Set
- Keys
- List Length
- Multi Get
- Multi Set
- Persist
- Pop
- Publish
- Push
- Scan
- Set
- Set Add
- Set Cardinality
- Set Is Member
- Set Remove
- Sorted Set Add
- Sorted Set Cardinality
- Sorted Set Range
- Sorted Set Remove
- String Length
- TTL
Expire At
AI-generatedSummary
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.