connect
Connect to a Redis instance for BullMQ job queue management, using URL, environment variable, or connection parameters.
Instructions
Connect to Redis instance. Can use REDIS_URL environment variable if set. When running in Docker, localhost will automatically redirect to host.docker.internal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | Redis database number (ignored if url is provided) | |
| id | Yes | Connection identifier | |
| url | No | Redis URL (e.g., redis://user:pass@localhost:6379/0). If not provided, will use REDIS_URL env var or individual connection parameters. | |
| host | No | Redis host (ignored if url is provided) | localhost |
| port | No | Redis port (ignored if url is provided) | |
| password | No | Redis password (ignored if url is provided) |