boost::redis::sentinel_config::server_role
Whether to connect to a Redis master or to a replica.
Synopsis
Declared in <boost/redis/config.hpp>
role server_role = role::master;
Description
The library resolves and connects to the Redis master, by default. Set this value to role::replica to connect to one of the replicas of the master identified by master_name. The particular replica will be chosen randomly.
Created with MrDocs