Optionaloptions: { blocking?: boolean; withBlockingConnection?: boolean }
Optionalblocking?: booleanThe backend's main connection is itself blocking (e.g. QueueEvents).
OptionalwithBlockingConnection?: booleanProvision a dedicated blocking connection (workers).
Factory that builds an IQueueBackend for a given queue. Injected into the queue classes so they depend only on the abstraction, never on a concrete datastore/connection. The default factory is the Redis one (
createRedisBackend).The factory is generic over the concrete backend type
Bit produces, so a caller (or class) parameterized onBkeeps the concrete typing end-to-end (e.g.getBackend()returning the concrete adapter instead of the bare interface).