Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Persist

AI-generated

Summary

Remove the expiration timer from a specified key in Redis, making it persistent indefinitely.

Inputs

  • Key (required) — Name of the Redis key to remove expiration from.

Output shape

a single record with a JSON object containing the key name and a boolean indicating if persistence was successful

The output JSON includes 'key' (string) and 'persisted' (boolean) fields. No pagination or additional error envelopes are specified.

Examples

Example 1: Persist the key 'session_token' so it does not expire automatically

Set 'Key' to 'session_token' with operation 'Persist'.

Discussion