CONFIG

Synopsis

YEDIS only supports the CONFIG command to set the required password(s) for client authentication. All other CONFIG requests would be accepted as valid command without further processing.

To enable authentication, one can set a password that would be required for connections to communicate with the redis server. This is done using the following command:

CONFIG SET requirepass password[,password2]

Return value

Returns a status string.

Examples

$ CONFIG SET requirepass "yugapass"
"OK"
$ AUTH "yugapass"
"OK"
$ AUTH "bad"
"ERR: Bad Password."
$ CONFIG SET requirepass "yugapassA,yugapassB"
"OK"
$ AUTH "yugapassA"
"OK"
$ AUTH "yugapassB"
"OK"
$ AUTH "yugapassC"
"ERR: Bad Password."

See also

auth