Redis
See the changelog of this Action type here.
Overview
Redis is a powerful in-memory data structure store that can be used as a database, cache, and message broker. It provides high performance, scalability, and versatility, making it a popular choice for real-time applications and data processing.
The Redis Action allows users to set and retrieve data from a Redis server.
In order to configure this action, you must first link it to a Listener. Go to Building a Pipeline to learn how to link.
Ports
These are the input and output ports of this Action:
Output ports
Default port - Events are sent through this port if no error occurs while processing them.
Error port - Events are sent through this port if an error occurs while processing them.
Installing Redis
To use this Action, you must install Redis and Redis CLI.
As installing Redis via a Docker is generally preferable, we will brief you on this procedure. To install it locally, check this article.
Start your local Redis Docker instance:
Now, connect to the Redis container:
Use this command to get the IP:
Paste this IP in the Redis endpoint field of your Redis Action.
For more help and in-depth detail, see these use cases.
Configuration
To open the configuration, click the Action in the canvas and select Configuration.
Enter the required parameters:
Connection Settings
Endpoint*
Enter the endpoint used to establish the connection to the Redis server.
Network Timeout
Read Timeout
Enter the maximum amount of milliseconds to wait to receive data after the connection has been established and the request has been sent.
Write Timeout
Enter the maximum amount of milliseconds to wait while trying to send data to the server.
Command
Commands
The command to read or write data from the Redis server.
SET
Redis Key - Choose the input field that contains it the model version.
Value - Choose the field that contains the events you want to input to Redis.
Expiration in seconds - Optionally, enter how long the key will be available in the Redis server. The minimum value is
0.
HSET
Redis Key - Choose the input field that contains it the model version.
Field/Value pairs - Add as many fields and pipeline values as required.
GET
Redis Key - Choose the input field that contains it the model version.
Output field - Enter a name for the output field that will store the output data.
HGET
Redis Key - Choose the input field that contains it the model version.
Redis field - Select the field from the Listener or Action that serves as the HGET field.
Output field - Enter a name for the output field that will store the output data.
Click Save to complete.
Last updated
Was this helpful?

