Reference

boost::redis::connection

A basic_connection that type erases the executor.

Synopsis

class connection;

Types

Name

Description

executor_type

Executor type.

Member Functions

Name

Description

connection [constructor]

Constructors

get_executor

Returns the underlying executor.

async_run

async_run overloads

async_receive

Receives server side pushes asynchronously.

receive

Receives server pushes synchronously without blocking.

async_exec

Calls boost::redis::basic_connection::async_exec.

cancel

Cancel operations.

will_reconnect

Returns true if the connection will try to reconnect if an error is encountered.

next_layer

(Deprecated) Calls boost::redis::basic_connection::next_layer.

reset_stream

(Deprecated) Resets the underlying stream.

set_receive_response

Sets the response object of async_receive operations.

get_usage

Returns connection usage information.

get_ssl_context

(Deprecated) Returns the ssl context.

Description

This connection type uses asio::any_io_executor and asio::any_completion_token to reduce compilation times.

For documentation of each member function see boost::redis::basic_connection.

Created with MrDocs