Boost.Redis

    • Introduction
    • Requests and responses
    • Serializing and parsing into custom types
    • Logging
    • Echo server benchmark
    • Comparison with other Redis clients
    • Examples
    • Reference
    • Acknowledgements
    • Changelog
  • Reference
arrow_upward

Reference

boost::redis::request::config::cancel_on_connection_lost

If true, calls to basic_connection::async_exec will complete with error if the connection is lost while the request hasn't been sent yet.

Synopsis

Declared in <boost/redis/request.hpp>

bool cancel_on_connection_lost = true;

Created with MrDocs