Cache/Redis
Redis
Redis is provisioned automatically when Jetpacked detects it from your repository. A dedicated instance is created for your project and the connection string is injected as REDIS_URL before your app starts.
Detection
Jetpacked detects Redis from:
ioredisorredisin your dependenciesbullmq,bull, or@nestjs/bull(implies Redis for queuing)
Auto-injected variable
| Variable | Value |
|---|---|
REDIS_URL |
redis://host:6379 |
Using an external Redis instance
If you want to use an existing Redis instance instead of a provisioned one, add REDIS_URL manually in the Environment tab. Your value takes precedence over the auto-injected one.
Viewing credentials
The generated REDIS_URL can be viewed in plain text in the Environment tab of your project.
Available service slots
You can reference Redis values in other environment variables using service slots. See Service Slots for full details.
| Slot | Resolves to |
|---|---|
$cache.url |
Full connection URL |