Skip to main content

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.

Authorization Notes#

Redis Connections#

Redis Connection#

InputKeyDefaultNotesExample

Database

string
/ Required
dbProvide a string value for the redis databaseadmin

Host

string
/ Required
host192.168.0.1Provide the string value for the host of the server.

Password

string
password

Port

string
/ Required
portThe port of the redis server.

Username

string
username

Actions#

Delete Key#

Delete the value of a key | key: deleteKey

InputKeyNotesExample

Key

string
/ Required
keyProvide a string value for key of the item.customerId

Connection

connection
/ Required
redisConnection

Output Example Payload#

{  "data": {}}

Flush All#

Delete all the keys of all the existing databases, not just the currently selected one | key: flushAll

InputKeyNotes

Connection

connection
/ Required
redisConnection

Output Example Payload#

{  "data": {}}

Get#

Get the value of a key | key: get

InputKeyNotesExample

Key

string
/ Required
keyProvide a string value for key of the item.customerId

Connection

connection
/ Required
redisConnection

Output Example Payload#

{  "data": "myValue"}

Get Time#

Get the local time of the redis server | key: getTime

InputKeyNotes

Connection

connection
/ Required
redisConnection

Output Example Payload#

{  "data": "12:34"}

Keys#

Returns all keys matching a specified pattern | key: keys

InputKeyNotesExample

Key

string
/ Required
keyProvide a string value for key of the item.customerId

Connection

connection
/ Required
redisConnection

Output Example Payload#

{  "data": {}}

Ping#

Send a ping to the redis server | key: ping

InputKeyNotes

Connection

connection
/ Required
redisConnection

Output Example Payload#

{  "data": "pong"}

Set#

Set the value of a key | key: set

InputKeyNotesExample

Key

string
/ Required
keyProvide a string value for key of the item.customerId

Connection

connection
/ Required
redisConnection

Value

string
/ Required
valueProvide a string for the value to be set.cust#3017

Output Example Payload#

{  "data": "Ok"}