Author: EFT Repo: dify-plugin-redis Version: 1.0.4 Type: tool
This Dify Redis plugin provides Redis SET and GET tools, allowing you to cache model-generated data in Redis to reduce server load and cost.
- Dify 1.14.2 or later
- A reachable Redis server (single-node or cluster mode)
- From Dify Marketplace: search "Redis" in the Plugins page and install.
- Or install from a local
.difypkg: Plugins → Install Plugin → Via Local File.
Configure the Redis connection in the plugin's authorization page:
| Parameter | Type | Required | Description |
|---|---|---|---|
host |
string |
No |
Redis server host, default 127.0.0.1 |
port |
string |
No |
Redis server port (numeric value), default 6379 |
password |
string |
No |
Redis server password, default none |
cluster |
bool |
No |
Whether the server runs in cluster mode, default false |
db |
string |
No |
Redis database index (numeric value, single-node only), default 0 |
Note:
portanddbare rendered as text inputs in Dify but should be numeric values.dbis ignored in cluster mode.
Write data into Redis. Returns the input value on success, or raises an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes |
Name part of the final Redis key |
key |
string |
Yes |
Key part of the final Redis key |
value |
string |
Yes |
Value to store |
ttl |
number |
No |
Time-to-live in seconds. Default 60; -1 = no expiry |
The final Redis key is {name}:{key}.
Read data from Redis. Returns the stored value, or an empty string if the key does not exist.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string |
Yes |
Name part of the final Redis key |
key |
string |
Yes |
Key part of the final Redis key |
The final Redis key is {name}:{key}.
- Cache the output of LLM into Redis.
- Read cache from Redis if exists.
- Keep your Redis credentials secure
- Grant the least privileges needed (e.g. restrict via Redis ACL)
- Traffic to Redis is plain TCP by default; use TLS for remote/untrusted servers
- See PRIVACY.md for how this plugin handles data

