Redis Triggers¶
Currently, Connect iPaaS provides seven triggers for Redis.
- Get Data for Hash (polling)
- Get Data for List (polling)
- Get Data for Sets (polling)
- Get Data for Sorted Sets (polling)
- Get Data for String (polling)
- Key Changed (Redis subscription)
- 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.
Get Data for Hash¶
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:
- HGET: Get the value of a hash field
- HGETALL: Get all the fields and values in a hash
- HKEYS: Get all the fields in a hash
- 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¶
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¶
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.
- SPOP: Remove and return one or multiple random members from a set
- SRANDMEMBER: Get one or multiple random members from a set
- 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¶
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.
- ZCARD: Get the number of elements of the sorted set.
- ZCOUNT: Count the members in a sorted set with scores within the given values.
- ZREVRANGE: Return a range of members in a sorted set, by index, with scores ordered from high to low.
- ZREVRANGEBYSCORE: Return a range of members in a sorted set, by score, with scores ordered from high to low.
- ZRANGE: Return a range of members in a sorted set, by index.
- 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.
- ZREVRANGE: Returns a range of members in a sorted set, by index, with scores ordered from high to low
- ZREVRANGEBYSCORE: Returns a range of members in a sorted set, by score, with scores ordered from high to low
- ZRANGE: Return a range of members in a sorted set, by index
- 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¶
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¶
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¶
The trigger uses Redis subscription and the workflow will be triggered when a key is deleted from the Redis database.