Skip to main content

GetKey

Redis Plugin – Get Key​

Summary (SEO Meta Description):
The Redis plugin in WeHub allows workflows to retrieve values from Redis by key.
Use this action to fetch cached data, configuration values, or workflow state.


Overview​

The Get Key action retrieves the value of a specified key from Redis.
It is typically used for reading cached data, loading workflow state, or fetching temporary values stored by other processes.


⚙️ Action: Get Key​

  • Description: Retrieves the value associated with a key in Redis.
  • Use Case: Fetch cached or temporary workflow data for processing.

Configuration Options:

FieldTypeDescription
LabelStringCustom name for the action.
Select ConnectionConnectionChoose or create a Redis connection.
KeyStringThe Redis key whose value should be retrieved.

📤 Output​

The action returns the value stored under the specified key in Redis.
If the key does not exist, it returns null.


💡 Example Use Cases​

  • Healthcare: Retrieve a patient session token from Redis before validating access.
  • Finance: Fetch exchange rates or cache results from earlier workflows.
  • E-commerce: Retrieve a user’s shopping cart state stored in Redis.

FAQ​

Q: What happens if the key does not exist?
A: The action returns null and the workflow continues without error.

Q: Can I retrieve complex objects from Redis?
A: Yes. If JSON or serialized objects are stored under the key, they will be returned as stored.

Q: Is there a way to check if the key exists before retrieving it?
A: You can use the Conditions Plugin to handle cases where the value is null.


Keywords: WeHub Redis Plugin, Get Key, Redis Workflow Integration, Retrieve Cache, Redis Value Fetch