Subscriber using Redis Publisher/Subscriber Package.
More...
#include <RedisPubSub.h>
Subscriber using Redis Publisher/Subscriber Package.
RedisSubscriber() is a superclass of RedisSyncSubscriber(), which subscribes data in Redis server(broker).
RedisSubscriber::RedisSubscriber |
( |
| ) |
|
Redis context.
Default constructor
RedisSubscriber::RedisSubscriber |
( |
const string & |
host, |
|
|
int32_t |
port = 6379 |
|
) |
| |
Constructor.
- Parameters
-
[in] | host | Host IP address of the broker. |
[in] | port | Port number of the broker. |
RedisSubscriber::~RedisSubscriber |
( |
| ) |
|
|
virtual |
void RedisSubscriber::setHost |
( |
const string & |
host, |
|
|
int32_t |
port |
|
) |
| |
Set host address of the broker.
- Parameters
-
[in] | host | Host IP address of the broker. |
[in] | port | Port number of the broker. |
std::shared_ptr<redisContext> RedisSubscriber::m_context |
|
protected |
string RedisSubscriber::m_host |
|
protected |
int32_t RedisSubscriber::m_port |
|
protected |
The documentation for this class was generated from the following files: