Class RedisMessageBus<UseBuffer, R>

Redis implementation of MessageBus.

Type Parameters

  • UseBuffer extends boolean = false

  • R extends RedisClientType = RedisClientType

Hierarchy

Implements

Constructors

  • Type Parameters

    • UseBuffer extends boolean = false

    • R extends RedisClientType = RedisClientType

    Parameters

    • client: R

      Redis client to use.

    • Optional useBuffer: UseBuffer

      Whether to use buffers for messages.

    • defaultTopic: string = DEFAULT_TOPIC

      The default topic to publish to.

    Returns RedisMessageBus<UseBuffer, R>

Properties

client: R

Redis client to use.

defaultTopic: string = DEFAULT_TOPIC

The default topic to publish to.

useBuffer?: UseBuffer

Whether to use buffers for messages.

Accessors

Methods

  • Returns Promise<void>

Generated using TypeDoc