| cpp_redis 4.0.0 cpp_redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.

Public Member Functions | List of all members
cpp_redis::sentinel::sentinel_def Class Reference

`#include <sentinel.hpp>`

## Public Member Functions
| sentinel_def (const std::string &host, std::size_t port, std::uint32_t timeout_msecs)
| ctor
| ~sentinel_def (void)=default
| dtor
const std::string & | get_host (void) const
size_t | get_port (void) const
std::uint32_t | get_timeout_msecs (void) const
void | set_timeout_msecs (std::uint32_t timeout_msecs)

## Detailed Description

store informations related to a sentinel typically, host, port and connection timeout

## Member Function Documentation

## ◆ get_host()

const std::string& cpp_redis::sentinel::sentinel_def::get_host | ( | void |  | ) | const
| inline

Returns
  sentinel host

## ◆ get_port()

size_t cpp_redis::sentinel::sentinel_def::get_port | ( | void |  | ) | const
| inline

Returns
  sentinel port

## ◆ get_timeout_msecs()

std::uint32_t cpp_redis::sentinel::sentinel_def::get_timeout_msecs | ( | void |  | ) | const
| inline

Returns
  timeout for sentinel

## ◆ set_timeout_msecs()

void cpp_redis::sentinel::sentinel_def::set_timeout_msecs | ( | std::uint32_t | timeout_msecs | ) |
| inline

set connect timeout for sentinel in msecs

Parameters

  timeout_msecs | new value

The documentation for this class was generated from the following file:

- includes/cpp_redis/core/sentinel.hpp