All integrationsDatabases
Redis
Read and write a Redis database: store and read values with expiries, count, queue with lists, keep records in hashes and sets, publish messages and add to streams.
- actions
- 20
- trigger
- 1
Triggers
Start a workflow when something happens in Redis.
- New stream entryRuns for each entry added to a Redis stream. Entries already on the stream when the workflow is turned on don't run it.
Actions
Steps a workflow can run in Redis.
- Get valueRead the text stored under a key, and how long until it expires. A missing key comes back with 'found' false rather than failing.
- Set valueStore text, a number or JSON under a key, replacing what is there. It can expire after some seconds or at a moment, and can be stored only if the key is new (for a lock) or only if it already exists.
- Delete keysDelete one or more keys, whatever they hold. Missing keys are skipped.
- Check keyFind out whether a key exists, what kind of value it holds (string, list, hash, set, sorted set or stream) and when it expires.
- Find keysList the keys whose names match a pattern, such as order:* for every key starting order:. Safe on a busy server: Redis is read in small steps.
- Set expiryMake a key expire after some seconds or at a moment. With neither, the key's expiry is removed so it is kept.
- Increment numberAdd to the number stored under a key and get the new number. A missing key starts at 0. Use a negative amount to count down.
- Add to listAdd items to the end (or start) of a list, creating the list if needed. Handy as a simple queue.
- Take from listTake items off the start (or end) of a list, removing them. With items added at the end, this takes the oldest first.
- Get list itemsRead a list's items by position without removing them. Positions start at 0; -1 is the last item.
- Set hash fieldsSet named fields of a hash, a record stored under one key, creating it if needed. Other fields are left as they are.
- Get hash fieldsRead every field of a hash, or only the ones named.
- Delete hash fieldsRemove named fields from a hash. The hash is deleted once it has none.
- Add to setAdd members to a set, a collection without repeats. A member already in it is not added twice.
- Get set membersList a set's members, and check whether one value is among them.
- Remove from setRemove members from a set. The set is deleted once it is empty.
- Publish messageSend a message to a channel. Only programs subscribed at that moment receive it; nothing is kept. To keep messages, add them to a stream.
- Add stream entryAppend an entry of named fields to a stream, a log that keeps every entry in order. Creates the stream if needed.
- Read stream entriesRead a stream's entries without removing them: from the oldest, or the newest first, and only those after an entry ID if given.
- Run commandSend any other Redis command, such as ZADD for a leaderboard or GEOSEARCH, with its arguments. Commands that wipe or stop the server are refused.
No actions match that.
Automate Redis with Lodol.
Connect Redis and ask your AI for your first workflow.
Free plan, no credit card