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
Keys
AI-generatedSummary
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.