boost::redis::connection::connection :: Boost.Redis

# boost::redis::connection::connection

Constructors

## Synopses

Declared in `<boost/redis/connection.hpp>`

Constructor from an executor and a logger.

    connection(
        executor_type ex,
        logger lgr);

» more...

Constructor from an `io_context` and a logger.

    connection(
        asio::io_context& ioc,
        logger lgr);

» more...

Constructor from an executor.

    explicit
    connection(
        executor_type ex,
        asio::ssl::context ctx = asio::ssl::context{asio::ssl::context::tlsv12_client},
        logger lgr = {});

» more...

Constructor from an `io_context`.

    explicit
    connection(
        asio::io_context& ioc,
        asio::ssl::context ctx = asio::ssl::context{asio::ssl::context::tlsv12_client},
        logger lgr = {});

» more...

## Parameters

Name | Description
--- | ---
ex | Executor used to create all internal I/O objects.
lgr | Logger configuration. It can be used to filter messages by level and customize logging. By default, `logger::level::info` messages and higher are logged to `stderr`.
ioc | I/O context used to create all internal I/O objects.
ctx | SSL context.

Created with MrDocs