boost::redis::basic_connection::basic_connection :: Boost.Redis

# boost::redis::basic_connection::basic_connection

Constructors

## Synopses

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

Constructor from an executor and a logger.

    basic_connection(
        executor_type ex,
        logger lgr);

» more...

Constructor from an `io_context` and a logger.

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

» more...

Constructor from an executor.

    explicit
    basic_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
    basic_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