Redis Credential - Cache and Message Queue
What is a Redis Credential
Section titled “What is a Redis Credential”A Redis credential allows your workflows to connect to a Redis server for caching, message queues, sessions, and high-speed key-value data storage.
Configuration Fields
Section titled “Configuration Fields”| Field | Description | Example |
|---|---|---|
| Host | Redis server address | localhost or redis.example.com |
| Port | Connection port | 6379 |
| Password | Authentication password (optional) | my_secure_password |
| DB | Database number (0-15) | 0 |
How to Get the Credentials
Section titled “How to Get the Credentials”Local Redis
Section titled “Local Redis”- Install Redis on your server
- The default host is
localhostor127.0.0.1 - The default port is
6379 - The password is configured in
redis.confwith therequirepassdirective
Redis Cloud
Section titled “Redis Cloud”- Go to redis.com/cloud and create an account
- Create a subscription and a database
- In the database details, copy the Endpoint (host and port)
- Copy the Default User Password
Upstash
Section titled “Upstash”- Go to upstash.com and create an account
- Create a Redis database
- In the details, copy the Endpoint, Port, and Password
Troubleshooting
Section titled “Troubleshooting”Connection Error
Section titled “Connection Error”- Verify the host and port are correct
- Confirm the Redis server is running
- Check that the firewall allows connections to the Redis port
Authentication Error
Section titled “Authentication Error”- Verify the password is correct
- If Redis doesn’t require a password, leave the field empty
Connection Refused from Outside
Section titled “Connection Refused from Outside”- Redis by default only accepts local connections
- Configure
bindinredis.confto allow remote connections - Use SSL/TLS for remote connections
Security
Section titled “Security”- Always configure a strong password for Redis
- Do not expose Redis directly to the Internet without protection
- Use SSL/TLS for remote connections
- Configure the
bindparameter to restrict listening interfaces - Disable dangerous commands with
rename-commandin the configuration - Use private networks or VPN for inter-service communication
- Monitor active connections with the
CLIENT LISTcommand