Currently, I'm in the process of implementing logic to efficiently reuse redis connections with bullMQ by referring to this specific section in the bullMQ documentation.
My setup involves utilizing the latest BullMQ npm version (1.80.6).
As per the instructions provided, it's advised to define the createClient
method as part of the QueueOptions
object.
However, executing this step results in an error code TS2559 being thrown.
The type '{ createClient: (type: string, redisOpts: any); }' does not share any properties with the 'QueueOptions' type.
I'm curious to know if the use of the createClient
logic has been deprecated. If so, are there any viable alternatives available?
If not, could anyone provide insights into where I might be going wrong?