boost::redis::config::clientname

(Deprecated) Client name parameter to use during connection establishment.

Synopsis

Declared in <boost/redis/config.hpp>

std::string clientname = "Boost.Redis";

Description

If use_setup is false (the default), during connection establishment, a HELLO command is sent. If this field is not empty, the HELLO command will contain a SETNAME subcommand containing this value.

When using Sentinel, this setting applies to masters and replicas. Use sentinel_config::setup to configure this value for Sentinels.

Deprecated

This setting is deprecated and will be removed in a subsequent release. Please set setup, instead:

cfg.use_setup = true;
cfg.setup.clear();
cfg.setup.hello_setname("my_client_name");

Created with MrDocs