Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Exists

AI-generated

Summary

Check the existence of one or more Redis keys by specifying their names as a space-separated string.

Inputs

  • Keys (required) — Space-separated names of the Redis keys to check for existence.

Output shape

A single JSON object indicating the number of existing keys and listing the keys checked.

Returns a JSON object with 'exists' property indicating how many of the specified keys exist, and 'keys' property listing the keys that were checked.

Examples

Example 1: Check if keys 'key1', 'key2', and 'key3' exist in Redis.

Set 'Keys' parameter to 'key1 key2 key3'. The output will show how many of these keys exist and which keys were checked.

Discussion