Use Redis in Sim through a direct connection to a Redis instance. Workflows can read and write keys, work with hashes and lists, increment values, set expiration times, and run commands.
Use the block
Connect to any Redis instance to perform key-value, hash, list, and utility operations via a direct connection.
Actions
Redis Get
Get the value of a key from Redis.
Redis Set
Set the value of a key in Redis with an optional expiration time in seconds.
Redis Delete
Delete a key from Redis.
Redis Keys
List all keys matching a pattern in Redis. Avoid using on large databases in production; use the Redis Command tool with SCAN for large key spaces.
Redis Command
Execute a raw Redis command as a JSON array (e.g. ["HSET", "key", "field", "value"]).
Redis HSET
Set a field in a hash stored at a key in Redis.
Redis HGET
Get the value of a field in a hash stored at a key in Redis.
Redis HGETALL
Get all fields and values of a hash stored at a key in Redis.
Redis HDEL
Delete a field from a hash stored at a key in Redis.
Redis INCR
Increment the integer value of a key by one in Redis.
Redis INCRBY
Increment the integer value of a key by a given amount in Redis.
Redis EXPIRE
Set an expiration time (in seconds) on a key in Redis.
Redis TTL
Get the remaining time to live (in seconds) of a key in Redis.
Redis PERSIST
Remove the expiration from a key in Redis, making it persist indefinitely.
Redis LPUSH
Prepend a value to a list stored at a key in Redis.
Redis RPUSH
Append a value to the end of a list stored at a key in Redis.
Redis LPOP
Remove and return the first element of a list stored at a key in Redis.
Redis RPOP
Remove and return the last element of a list stored at a key in Redis.
Redis LLEN
Get the length of a list stored at a key in Redis.
Redis LRANGE
Get a range of elements from a list stored at a key in Redis.
Redis EXISTS
Check if a key exists in Redis.
Redis SETNX
Set the value of a key in Redis only if the key does not already exist.