Skip to content

Commit

Permalink
docs(connection): fix broken link to commonRedisOptions keyPrefix (#2843
Browse files Browse the repository at this point in the history
)
  • Loading branch information
spaceofmiah authored Oct 20, 2024
1 parent 98e1ec6 commit d1eb1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/gitbook/guide/connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const myWorker = new Worker('myqueue', async (job)=>{}, { connection });
Note that in the second example, even though the ioredis instance is being reused, the worker will create a duplicated connection that it needs internally to make blocking connections. Consult the [ioredis](https://github.com/luin/ioredis/blob/master/API.md) documentation to learn how to properly create an instance of `IORedis.`

{% hint style="danger" %}
When using ioredis connections, be careful not to use the "keyPrefix" option in [ioredis](https://luin.github.io/ioredis/interfaces/CommonRedisOptions.html#keyPrefix) as this option is not compatible with BullMQ, which provides its own key prefixing mechanism.
When using ioredis connections, be careful not to use the "keyPrefix" option in [ioredis](https://redis.github.io/ioredis/interfaces/CommonRedisOptions.html#keyPrefix) as this option is not compatible with BullMQ, which provides its own key prefixing mechanism.
{% endhint %}

If you can afford many connections, by all means just use them. Redis connections have quite low overhead, so you should not need to care about reusing connections unless your service provider imposes hard limitations.
Expand Down

0 comments on commit d1eb1bb

Please sign in to comment.