Abstract
Helper class with shared Redis logic
Extends
AsyncEventEmitter<ToEventMap<TEvents, TResponses>>Implements
IBaseBroker<TEvents>Constructs a new instance of the
BaseRedisBroker
className | Type | Optional | Description |
---|---|---|---|
redisClient | Redis | No | None |
options | RedisBrokerOptions | No | None |
Used for Redis queues, see the 3rd argument taken by xadd
Destroys the broker, closing all connections
Handles an incoming Redis event
Begins polling for events, firing them to listen
Subscribes to the given events
Name | Type | Optional | Description |
---|---|---|---|
events | (keyof TEvents)[] | No | None |
Unsubscribes from the given events
Name | Type | Optional | Description |
---|---|---|---|
events | (keyof TEvents)[] | No | None |