Redis
Type:
redis
• Category:flow
• Tags:redis
,data
,cache
Description
Perform Redis operations
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
uri | string | Redis URI (default internal Redis) | no | |
prefix | string | User-defined prefix for namespacing | no | "" |
operation | string | Redis operation to perform | no | "set" |
key | string | Key for operations | no | |
value | string | Value for set/incr | no | |
ttl | number | TTL in seconds for set/expire | no | |
pattern | string | Pattern for list operation | no | "*" |
Help
Redis Worker - Performing Redis Operations
Worker enables performing basic Redis database operations with automatic namespacing for security.
By default uses internal Redis.
Operations:
- set: Sets a value under a key (optionally with TTL)
- get: Retrieves a value from a key
- delete: Deletes a key
- list: Lists keys matching a pattern
- exists: Checks if a key exists
- incr: Increments a numeric value (by default by 1)
- expire: Sets TTL for a key
Examples:
- Set value: operation="set", key="mydata", value="hello"
- Get value: operation="get", key="mydata"
- List keys: operation="list", pattern="*"
- With prefix: prefix="workflow", key="step1"
Notes:
- Values are automatically serialized to JSON if they are objects/arrays
- When retrieving, JSON is automatically parsed
- All operations are performed in an isolated user space