Skip to content

Redis Triggers

Currently, Connect iPaaS provides seven triggers for Redis.

  1. Get Data for Hash (polling)
  2. Get Data for List (polling)
  3. Get Data for Sets (polling)
  4. Get Data for Sorted Sets (polling)
  5. Get Data for String (polling)
  6. Key Changed (Redis subscription)
  7. Key Deleted (Redis subscription)

These triggers work with two triggering mechanisms.

  • Redis subscription - With Redis Subscription, you can get data updates in real-time.
  • Polling Trigger - This mechanism allows you to get data at every scheduled time interval.

Triggers for Redis Application on Connect iPaaS

Figure 1. Triggers for Redis Application on Connect iPaaS

Get Data for Hash

 Get Data for Hash as a Trigger in Redis Application on Connect iPaaS

Figure 2. Get Data for Hash as a Trigger in Redis Application on Connect iPaaS

Using this trigger, you will get the required Fields and Values stored in hash at the scheduled polling interval. Four Redis commands are available for this trigger:

  1. HGET: Get the value of a hash field
  2. HGETALL: Get all the fields and values in a hash
  3. HKEYS: Get all the fields in a hash
  4. HLEN: Get the number of fields in a hash

After selecting a command, fill out the arguments required by the Redis command to complete the trigger configuration.

Get Data for List

 Get Data for List as a Trigger in Redis Application on Connect iPaaS

Figure 3. Get Data for List as a Trigger in Redis Application on Connect iPaaS

Using this trigger, you will be able to monitor the length of the list stored at the scheduled polling interval. You can specify the list using the Key Name of the list.

Get Data for Sets

 Get Data for Sets as a Trigger in Redis Application on Connect iPaaS

Figure 4. Get Data for Sets as a Trigger in Redis Application on Connect iPaaS

Using this trigger, you will get data stored in a set at the scheduled polling interval. Three Redis commands are available for this trigger. You can specify the set using the Key Name of the set.

  1. SPOP: Remove and return one or multiple random members from a set
  2. SRANDMEMBER: Get one or multiple random members from a set
  3. SCARD: Get the number of members in a set

After selecting a command, fill out the arguments required by the Redis command to complete the trigger configuration.

Get Data for Sorted Sets

 Get Data for Hash as a Trigger in Redis Application on Connect iPaaS

Figure 5. Get Data for Hash as a Trigger in Redis Application on Connect iPaaS

Using this trigger, you will get data stored in a sorted set at a scheduled polling interval. Six Redis commands are available for this trigger. You can specify the sorted set using the Key Name of the sorted set.

  1. ZCARD: Get the number of elements of the sorted set.
  2. ZCOUNT: Count the members in a sorted set with scores within the given values.
  3. ZREVRANGE: Return a range of members in a sorted set, by index, with scores ordered from high to low.
  4. ZREVRANGEBYSCORE: Return a range of members in a sorted set, by score, with scores ordered from high to low.
  5. ZRANGE: Return a range of members in a sorted set, by index.
  6. ZRANGEBYSCORE: Return a range of members in a sorted set, by score.

After choosing a command, you need to fill out the details required by the Redis command to complete the trigger configuration.

  1. ZREVRANGE: Returns a range of members in a sorted set, by index, with scores ordered from high to low
  2. ZREVRANGEBYSCORE: Returns a range of members in a sorted set, by score, with scores ordered from high to low
  3. ZRANGE: Return a range of members in a sorted set, by index
  4. ZRANGEBYSCORE: Return a range of members in a sorted set, by score

After selecting a command, fill out the arguments required by the Redis command to complete the trigger configuration.

Get Data for String

 Get Data for String as a Trigger in Redis Application on Connect iPaaS

Figure 6. Get Data for String as a Trigger in Redis Application on Connect iPaaS

Using this trigger, you will get the required string data at a scheduled polling interval. The String can be specified using the Key Name of the String.

Key Changed

 Get Data for Key Changed as a Trigger in Redis Application on Connect iPaaS

Figure 7. Key Changed Trigger

This trigger works in real time and uses Redis subscription. The workflow will be triggered when the value of the selected Key Name is updated in the Redis database.

Key Deleted

 Get Data for Key Deleted as a Trigger in Redis Application on Connect iPaaS

Figure 8. Key Deleted Trigger

The trigger uses Redis subscription and the workflow will be triggered when a key is deleted from the Redis database.