boost::redis::config::password :: Boost.Redis

# boost::redis::config::password

(Deprecated) Password used for authentication during connection establishment.

## Synopsis

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

    std::string password;

## Description

If `use_setup` is false (the default), during connection establishment, authentication is performed by sending a `HELLO` command. This field contains the password to employ.

If the username equals the literal `"default"` (the default) and no password is specified, the `HELLO` command is sent without authentication parameters.

When using Sentinel, this setting applies to masters and replicas. Use `sentinel_config::setup` to configure authorization 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("my_username", "my_password");

Created with MrDocs