Redis Component
Manage items in a Redis database
Component key: redis
Description
Redis is an in-memory data structure store, used as a distributed, in-memory key–value database, cache and message broker. The Redis component provides the ability to create, read, update, and delete data inside a Redis database.
This component returns data that can be used in subsequent steps.
Connections
Redis Connection
Input | Default | Notes | Example |
---|---|---|---|
Database string db | Select a logical database to connect to. | 0 | |
Host string / Required host | 192.168.0.1 | Provide the string value for the host of the server. | |
Password password / Required password | |||
Port string / Required port | The port of the redis server. | ||
Username string username |
Actions
Delete Key
Delete the value of a key | key: deleteKey
Input | Notes | Example |
---|---|---|
Key string / Required key | Provide a string value for key of the item. | customerId |
Connection connection / Required redisConnection |
Example Payload for Delete Key
Example Payload for Delete Key
{
"data": 1
}
Flush All
Delete all the keys of all the existing databases, not just the currently selected one | key: flushAll
Input | Notes |
---|---|
Connection connection / Required redisConnection |
Example Payload for Flush All
Example Payload for Flush All
{
"data": "OK"
}
Get
Get the value of a key | key: get
Input | Notes | Example |
---|---|---|
Key string / Required key | Provide a string value for key of the item. | customerId |
Connection connection / Required redisConnection |
Example Payload for Get
Example Payload for Get
{
"data": "myValue"
}
Get Time
Get the local time of the redis server | key: getTime
Input | Notes |
---|---|
Connection connection / Required redisConnection |
Example Payload for Get Time
Example Payload for Get Time
{
"data": "2024-05-20T23:01:37.700Z"
}
Keys
Returns all keys matching a specified pattern | key: keys
Input | Notes | Example |
---|---|---|
Key string / Required key | Provide a string value for key of the item. | customerId |
Connection connection / Required redisConnection |
Example Payload for Keys
Example Payload for Keys
{
"data": [
"key1",
"key2",
"key3"
]
}
Ping
Send a ping to the redis server | key: ping
Input | Notes |
---|---|
Connection connection / Required redisConnection |
Example Payload for Ping
Example Payload for Ping
{
"data": "PONG"
}
Set
Set the value of a key | key: set
Input | Notes | Example |
---|---|---|
Key string / Required key | Provide a string value for key of the item. | customerId |
Connection connection / Required redisConnection | ||
Value string / Required value | Provide a string for the value to be set. | cust#3017 |
Example Payload for Set
Example Payload for Set
{
"data": "OK"
}