Redis
Redis Plugin
Summary (SEO Meta Description):
The Redis plugin in WeHub allows workflows to interact with Redis by adding, retrieving, and deleting keys.
Use Redis as a lightweight key-value store for caching, session management, and workflow state handling.
Overview
The Redis Plugin connects WeHub workflows to a Redis key-value store.
It supports adding new keys, retrieving values, and deleting keys.
Redis is commonly used for:
- Caching frequently accessed data
- Storing session tokens and temporary workflow states
- Managing lightweight queues or flags
⚙️ Available Actions
1. Add Key
- Description: Stores a new key-value pair in Redis.
- Use Case: Save temporary workflow state or cache external API results.
Configuration Options:
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the action. | 
| Select Connection | Connection | Choose or create a Redis connection. | 
| Key | String | The key name to store. | 
| Value | Any | The value to store (String, Number, Boolean). | 
2. Delete Key
- Description: Removes a key and its value from Redis.
- Use Case: Clear cached data or remove expired workflow states.
Configuration Options:
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the action. | 
| Select Connection | Connection | Choose or create a Redis connection. | 
| Key | String | The key to delete from Redis. | 
3. Get Key
- Description: Retrieves the value of a specified key.
- Use Case: Fetch cached or temporary values for further workflow steps.
Configuration Options:
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the action. | 
| Select Connection | Connection | Choose or create a Redis connection. | 
| Key | String | The key to retrieve from Redis. | 
Output: Returns the value stored in Redis or null if the key does not exist.
💡 Example Use Cases
- Healthcare: Store patient session tokens and retrieve them for validation.
- Finance: Cache currency exchange rates to reduce API calls.
- E-commerce: Save and fetch shopping cart states or user preferences.
- Workflow Optimization: Use Redis as a short-term cache between nodes.
FAQ
Q: What data types are supported in Redis keys?
A: The plugin supports storing strings, numbers, and booleans. Complex objects can be stored as serialized strings.
Q: What happens if I try to get a non-existent key?
A: The plugin returns null without error.
Q: Can I use Redis as a message queue in WeHub?
A: Yes. Redis pub/sub patterns can be combined with workflows, but this plugin is optimized for key-value operations.
Keywords: WeHub Redis Plugin, Redis Add Key, Redis Get Key, Redis Delete Key, Redis Cache, Workflow Key-Value Store