Constructor
new Redis(settingsopt) → {Redis}
Creates an instance of a ZeroMQ subscriber.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object |
<optional> |
Settings for the Redis connection.
Properties
|
- Source:
Returns:
Instance of the Redis service, ready to run `start()`
- Type
- Redis
Methods
(async) start() → {Redis}
Opens the connection and subscribes to the requested channels.
- Source:
Returns:
Instance of the service.
- Type
- Redis
(async) stop() → {Redis}
Closes the connection to the Redis server.
- Source:
Returns:
Instance of the service.
- Type
- Redis