Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Keys

AI-generated

Summary

Retrieve all Redis keys matching a specified pattern and optionally fetch their associated values.

Inputs

  • Key Pattern (required) — The key pattern (e.g., wildcard pattern) used to match keys in Redis.
  • Get Values — Boolean flag to determine whether to fetch and return the values of the matching keys.

Output shape

A list of items each containing JSON with keys (and optionally their values) matching the pattern.

If 'Get Values' is true, each output item contains the key names as properties with their respective values; otherwise, it contains a single JSON object with a 'keys' array. Values retrieved respect the Redis data types and may be returned as is without transformation.

Examples

Example 1: Keys only

Provide a key pattern (e.g., 'user:*') and set 'Get Values' to false to retrieve only the list of matching keys without loading values.

Example 2: Keys with values

Provide a key pattern (e.g., 'session:*') and set 'Get Values' to true to retrieve each key along with its associated value from Redis.

Discussion